Skip to content

Instantly share code, notes, and snippets.

@placek
Created July 29, 2013 11:09
Show Gist options
  • Save placek/6103631 to your computer and use it in GitHub Desktop.
Save placek/6103631 to your computer and use it in GitHub Desktop.
Shell useful hacks
# 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