mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Merge pull request #274 from ImmortalPC/master
[CHANGE] Add cheats for DD and SSH
This commit is contained in:
commit
3c1b5c5860
3 changed files with 20 additions and 0 deletions
|
@ -17,3 +17,6 @@ dd if=/dev/zero of=/dev/null bs=128M status=progress
|
||||||
|
|
||||||
# DD with "graphical" return
|
# DD with "graphical" return
|
||||||
dcfldd if=/dev/zero of=/dev/null bs=500K
|
dcfldd if=/dev/zero of=/dev/null bs=500K
|
||||||
|
|
||||||
|
# This will output the sound from your microphone port to the ssh target computer's speaker port. The sound quality is very bad, so you will hear a lot of hissing.
|
||||||
|
dd if=/dev/dsp | ssh -c arcfour -C username@host dd of=/dev/dsp
|
||||||
|
|
|
@ -32,3 +32,12 @@ ssh user@example.com -C -c blowfish -X
|
||||||
# Copy files and folders through ssh from remote host to pwd with tar.gz compression
|
# Copy files and folders through ssh from remote host to pwd with tar.gz compression
|
||||||
# when there is no rsync command available
|
# when there is no rsync command available
|
||||||
ssh user@example.com "cd /var/www/Shared/; tar zcf - asset1 asset2" | tar zxf -
|
ssh user@example.com "cd /var/www/Shared/; tar zcf - asset1 asset2" | tar zxf -
|
||||||
|
|
||||||
|
# Mount folder/filesystem through SSH
|
||||||
|
# Install SSHFS from https://github.com/libfuse/sshfs
|
||||||
|
# Will allow you to mount a folder securely over a network.
|
||||||
|
sshfs name@server:/path/to/folder /path/to/mount/point
|
||||||
|
|
||||||
|
# Emacs can read file through SSH
|
||||||
|
# Doc: http://www.gnu.org/software/emacs/manual/html_node/emacs/Remote-Files.html
|
||||||
|
emacs /ssh:name@server:/path/to/file
|
||||||
|
|
8
cheat/cheatsheets/xxd
Normal file
8
cheat/cheatsheets/xxd
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# Convert bin/string to hex.
|
||||||
|
# Result: 34322069732074686520736f6c7574696f6e0a
|
||||||
|
echo '42 is the solution' | xxd -p
|
||||||
|
|
||||||
|
# Convert hex to bin/string.
|
||||||
|
# Result: 42 is the solution
|
||||||
|
echo '34322069732074686520736f6c7574696f6e0a' | xxd -r -p
|
||||||
|
|
Loading…
Reference in a new issue