You can use "decode()" in a similar manner:
python -c 'print "68656c6c6f".decode("hex")'
Show Sample Output
Returns URL Encoded string from input ($1).
useful if you are using lots of data URI's in your css files
If you are in an environment where you don't have the base64 executable or MIME tools available, this can be very handy for salvaging email attachments when the headers are mangled but the encoded document itself is intact.
Another option is openssl.
If you're using the experimental vorbis encoder (homebrew version of libffmpeg)
* Output is jq compatible * Output is single lines - unix compatible * Multiple files supported
Encodes HTML entities from input (file or stdin) so it's possible to directly past the result to a blog or HTML source file.
MIME::Base64 is a part of Perl5 distribution. You can also use decode_base64 for oposite result. Show Sample Output
Encode video.avi into newvideo.avi using the libav codec to produce an MPEG4 file with a bitrate of 800
I use it for embedding images in CSS for Stylish, the Firefox addon. Thought it might be useful to others.
This one uses hex conversion to do the converting and is in shell/sed only (should probably still use the python/perl version).
This command takes a set of images (from a render, for example), and converts them into a format conforming to the Blu-ray spec, or at least the version on the Wikipedia page.
This CLI requiere the uniconv package that is provided with the yudit unicode editor . The wubi86 is a way to type chinese far quicker than pinyin . More infor on wikipedia : http://en.wikipedia.org/wiki/Wubizixing , http://www.yale.edu/chinesemac/wubi/xing.html Show Sample Output
It only encodes non-Basic-ASCII chars, as they are the only ones not well readed by UTF-8 and ISO-8859-1 (latin-1). It converts all * C3 X (some latin symbols like ASCII-extended ones) and * C2 X (some punctuation symbols like inverted exclamation) ...UTF-8 double byte symbols to escaped form that every parser understands to form the URLs. I didn't encode spaces and the rest of basic punctuation, but supposedly, space and others are coded as \x20, for example, in UTF-8, latin-1 and Windows-cp1252.... so its read perfectly. Please feel free to correct, the application to which I designe that function works as expected with my assumption. Note: I specify a w=999, I didn't find a flag to put unlimited value. I just suppose very improbable surpass the de-facto 255 (* 3 byte max) = 765 bytes length of URL Show Sample Output
usefull for posts via wget Show Sample Output
This command will encode a string using the ROT47 cipher. Show Sample Output
Really helpfull when play with files having spaces an other bad name. Easy to store and access names and path in just a field while saving it in a file. This format (URL) is directly supported by nautilus and firefox (and other browsers) Show Sample Output
Useful for Roku which does not support 7.1. Useful resources: - https://trac.ffmpeg.org/wiki/Map - https://trac.ffmpeg.org/wiki/Encode/HighQualityAudio - https://superuser.com/questions/852400/properly-downmix-5-1-to-stereo-using-ffmpeg
Gives MPEG-4/DivX output video file ready for uploading to YouTube from FLV file downloaded from the site and your own subtitle file UTF-8 encoded. No resizing needed. (?)
It handles all possible combination of the hex bytes, including NaNs, Infinities, Normalized and Subnormal Numbers...
This crazy DC stuff spent me a few days to write, optimize, polish and squeeze so that it works within the tight 255 character bound...
You can modify it easily for other IEEE754 numbers, say, half, double, double-extended, quadruple
(I hope someone will find this useful and submit more dc code to commandlinefu!)
Show Sample Output
To decrypt: openssl aes-256-cbc -d -in secrets.txt.enc -out secrets.txt.new Reference: http://tombuntu.com/index.php/2007/12/12/simple-file-encryption-with-openssl Optional parameter -a makes output base64 encoded, can be viewed in text editor or pasted in email
If the password for the share your trying to mount contains special characters you can use URL escape characters. The above command uses an example as follows: username: user password: p@ss URL Encoded password: p%40ss All credit goes to Richard York: http://www.smilingsouls.net/Blog/20110526100731.html Also check out this URL Decoder/Encoder to convert your passwords. http://meyerweb.com/eric/tools/dencoder/
sox (SOund eXchange) can capture the system audio be it a browser playing youtube or from hardware mic and can pipe it to ffmpeg which encodes it into flv and send it over rtmp. Tested using Red5 rtmp server.
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: