Created
June 12, 2011 18:40
-
-
Save Cairnarvon/1021869 to your computer and use it in GitHub Desktop.
Browser extensions suck.
This file contains hidden or 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
#!/bin/bash | |
# Open a Youtube or other video in your browser, wait for it to load, leave the | |
# browser window open. Run script. Profit. | |
# May not work with Gnash &c. | |
lsof -u $(whoami) | grep Flash | awk '{sub(/[^0-9]+/, "", $4) | |
sub(/\/tmp\//, "", $9) | |
print "/proc/"$2"/fd/"$4, $9".flv"}' | xargs -rn 2 cp -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment