Created
July 29, 2013 11:09
-
-
Save placek/6103631 to your computer and use it in GitHub Desktop.
Shell useful hacks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# searching through files content in current directory, not in .git subdir | |
find . -type f -not -path ".git" -exec grep --color -Hn "hello" {} \; | |
# VoIP | |
# reciever | |
nc -l -p 12345 | aplay | |
# sender | |
aplay | nc 192.168.0.2 12345 | |
# view the file while it is still updating | |
less +F file | |
# tunneling with SSH | |
ssh -N -L localhost:12345:REMOTE_MACHINE:12345 BRIDGE_MACHINE_USER@BRIDGE_MACHINE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment