Check These Out
No problem with word splitting. That should works on many Unix likes.
Brute force way to block all LSO cookies on a Linux system with the non-free Flash browser plugin. Works just fine for my needs. Enjoy.
Can be used for command line parameters too.
If you have a more complicated way of entering values (validation, GUI, ...), then write a function i.e. EnterValue() that echoes the value and then you can write:
$ param=${param:-$(EnterValue)}
When you remotely log in like "ssh -X userA:host" and become a different user with "su UserB", X-forwarding will not work anymore since /home/UserB/.Xauthority does not exist.
This will use UserA's information stored in .Xauthority for UserB to enable X-forwarding.
Watch http://prefetch.net/blog/index.php/2008/04/05/respect-my-xauthority/ for details.
With:
-vcodec, you choose what video codec the new file should be encoded with. Run ffmpeg -formats E to list all available video and audio encoders and file formats.
copy, you choose the video encoder that just copies the file.
-acodec, you choose what audio codec the new file should be encoded with.
copy, you choose the audio encoder that just copies the file.
-i originalfile, you provide the filename of the original file to ffmpeg
-ss 00:01:30, you choose the starting time on the original file in this case 1 min and 30 seconds into the film
-t 0:0:20, you choose the length of the new film
newfile, you choose the name of the file created.
Here is more information of how to use ffmpeg:
http://www.ffmpeg.org/ffmpeg-doc.html
Makes sure the contents of "myfile" are the same contents that the author intended given the author's md5 hash of that file ("c84fa6b830e38ee8a551df61172d53d7").
Usage: ytmp3 "YTurl" "YTurl2" "YTurl3" "YTurlN"
Uses the shift command to let you extract the .mp3 from as many youtube urls as you like (or wherever else youtube-dl is supported)
*Requires youtube-dl
Orginal chunk of code:
youtube-dl -q -t --extract-audio --audio-format mp3 URL
taken from here http://www.commandlinefu.com/commands/view/9701/convert-youtube-videos-to-mp3
Runs a local script over ssh assuming ssh keys are in place.
-P argument prints results to stdout.
# Uses - https://code.google.com/p/parallel-ssh/