Skip to content

Instantly share code, notes, and snippets.

@elnygren
Last active January 2, 2017 15:14
Show Gist options
  • Save elnygren/2bff798f77a66cb2c58c6f767fcf1c87 to your computer and use it in GitHub Desktop.
Save elnygren/2bff798f77a66cb2c58c6f767fcf1c87 to your computer and use it in GitHub Desktop.
Poor man's airdrop (send a file to a friend)
#
# RECEIVE DATA:
#
nc -lp <PORT> > data_from_someone
# gzipped, monitor with pv
nc -lp 6666 | gzip -d | pv > data_from_someone
#
# SEND DATA:
#
cat data_to_send | nc -v <IP> <PORT>
# pimp it with pv
cat data_to_send | pv | nc -v <IP> <PORT>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment