Check These Out
Sort lines within vi editor. In this example sort lines 33-61 and lines 4-9 asciibetically.
$ gorecord foo.mp4
I've tried all of the screen recorders available for Linux and this is easily the best. xvidcap segfaults; VNC is too much hassle. There are alternatives of this command already here that I am just too lazy to reply to. Messing with the frames per second option, -r, 25 seems to be the best. Any lower and the video will look like a flipbook, if it records at all - -r 10 won't - any faster is the same, oddly enough.
Edit: CLF doesn't like my long command to add audio, so here it is in the description.
$ goaddaudio()
${
$if [ $# != 3 ]; then
$ echo 'goaddaudio < audio > < src video > < dst video >'
$ return
$ fi
$
$ f=goaddaudio$RANDOM
$ ffmpeg -i "$2" &> $f
$ d=$( grep Duration $f | awk '{print $2}' | tr -d ',' ) &&
$ rm $f &&
$ ffmpeg -i "$1" -i "$2" -r 25 -ab 192k -ar 44100 -sameq -t $d "$3"
$}
*** CAREFULLY READ THE NOTES **** *** THIS DOES NOT WORK "OUT OF THE BOX" ***
You'll need a few minutes of CAREFUL reading before making your own Twitter feed:
In 2010 simple command line Twitter feed requests all stopped working because Twitter upgraded to SSL security.
Https requests for a filtered Twitter stream feed now require a special header called "oauth_header".
The benefit is that your stream feed and login info is securely encrypted.
The bad news is that an "oauth_header" takes some work to build.
Fortunately, four functions, imaginatively named step1, step2, step3 and step4 can be used to build a customized oauth_header for you in a few minutes.
Now, go look at "step1" to start creating your own oauth_header!
This is my first attempt at converting all HTML files to UTF-8 file encoding, including all subfolders.
Theres probably a much more compact way to do it, but I'm quite proud of it with my windows background ;)
I wanted all the 'hidden' .flv files from the http link in the command line; wget seemed appropriate, fed with output from lynx, grep the flv files and the normalised via sed (to remove the numeric bullet). Similar to the 'Grab mp3 files' fu. Replace link with your own, grep arg with something more interesting ;) See here for something along the same lines...
http://www.commandlinefu.com/commands/view/1006/grab-mp3-files-from-your-favorite-netcasts-mp3blog-or-sites-that-often-have-good-mp3s
Hope you find it useful! Improvements welcome, naturally.
Replaces a string matching a pattern in one or several files found recursively in a particular folder.
Directly send the content of a url to standard out. This command is most convenient for sending the output of a download directly to another command.
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
An example of zsh glob qualifiers.