mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
[CHANGE & ADD] Removing typo from SSH. Adding tip for emacs and ssh. Adding cheat for xxd
This commit is contained in:
parent
f38da23741
commit
b6d54b135c
2 changed files with 14 additions and 2 deletions
|
@ -34,6 +34,10 @@ ssh user@example.com -C -c blowfish -X
|
||||||
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
|
# Mount folder/filesystem through SSH
|
||||||
# Install SSHFS from http://fuse.sourceforge.net/sshfs.html
|
# Install SSHFS from https://github.com/libfuse/sshfs
|
||||||
# Will allow you to mount a folder security over a network.
|
# Will allow you to mount a folder securely over a network.
|
||||||
sshfs name@server:/path/to/folder /path/to/mount/point
|
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