Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on An lsof Primer. Parent comment
#!/bin/sh IFS='\ ' for i in `ls -dLtr \`lsof -c plugin-containe -a -u $USER -X +L1 | awk -F ' +' '/\/tmp\/Flash/{ print "/proc/" $2 "/fd/" gensub("[^0-9]", "", "g", $4); }'\``; do PLAY="$PLAY $i" done IFS=' ' mplayer -osdlevel 3 -fs $PLAY
So I go to youtube in a tab, let it buffer for a bit, hit the shortcut key and enjoy.
Note that it's only semi-recent versions of flash that automatically delete the videos, if not remove the +L1
If you get an error relating to gensub ("function gensub never defined"), you need to install gawk.
So I go to youtube in a tab, let it buffer for a bit, hit the shortcut key and enjoy.
Note that it's only semi-recent versions of flash that automatically delete the videos, if not remove the +L1