Skip to content

Commit

Permalink
Minor cleanup in cheatsheets
Browse files Browse the repository at this point in the history
  • Loading branch information
denisidoro committed Oct 14, 2019
1 parent 6a1327e commit befb5ac
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cheats/android.cheat
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ $ device: adb devices --- --headers 1 --column 1
# Start emulator
"$ANDROID_HOME/tools/emulator" -avd <emulator> -netdelay none -netspeed full

$ emulator: "$ANDROID_HOME/tools/emulator" -list-avds
$ emulator: "$ANDROID_HOME/tools/emulator" -list-avds
2 changes: 1 addition & 1 deletion cheats/compression.cheat
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ gzip -d <gz_file>
$ path: ls
$ tar_file: ls *.tar
$ targz_file: ls *.tar.gz
$ gz_file: ls *.gz
$ gz_file: ls *.gz
2 changes: 1 addition & 1 deletion cheats/crontab.cheat
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
crontab -l

# Edit cron job
crontab -e
crontab -e
3 changes: 1 addition & 2 deletions cheats/docker.cheat
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ $ container_id: docker ps --- --headers 1 --column 1




% docker-compose, container

# Builds, (re)creates, starts, and attaches to containers for all services
Expand All @@ -69,4 +68,4 @@ docker-compose logs --tail 100 <service_name> | less
docker-compose logs -f --tail 100 <service_name>

# Stops containers and removes containers, networks created by up
docker-compose down
docker-compose down
1 change: 0 additions & 1 deletion cheats/git.cheat
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ git remote rename <old_remote_name> <new_remote_name>
git remote remove <remote_name>

# Checkout to branch
# Change branch
git checkout <branch>

# Displays the current status of a git repository
Expand Down
2 changes: 0 additions & 2 deletions cheats/gpg.cheat
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,3 @@ gpg --clearsign <filename>

# detach signature
gpg --output <filename_sig> --detach-sig <filename>


3 changes: 1 addition & 2 deletions cheats/javascript.cheat
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ npm install <package_name> -g




% nvm, node, js

# install a specified version of node
Expand All @@ -36,4 +35,4 @@ nvm ls-remote
nvm use <version>

# set a node's version as default
nvm alias default <version>
nvm alias default <version>
2 changes: 1 addition & 1 deletion cheats/misc.cheat
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ curl -s "wttr.in/<location>" \

% qr code

# Create a QR code with the content
# Create a QR code with some content
echo <content> | curl -F-=\<- qrenco.de
3 changes: 2 additions & 1 deletion cheats/network.cheat
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ ifconfig \
| grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' \
| grep -Eo '([0-9]*\.){3}[0-9]*' \
| grep -v '127.0.0.1' \
| tail -n1
| tail -n1

0 comments on commit befb5ac

Please sign in to comment.