Last active
January 2, 2017 15:14
-
-
Save elnygren/2bff798f77a66cb2c58c6f767fcf1c87 to your computer and use it in GitHub Desktop.
Poor man's airdrop (send a file to a friend)
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
# | |
# 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