Check out my latest project: JSBin - live JavaScript pastebin

Archive for the "bash" Tag

Base64 decode to file

Useful if you've just received an email that says it has attachments but you can't get them out (as I just did!). View the raw source of the email, copy the Base64 encoded text, drop in to a file, and run through this. The output will be the binary (or ascii) attachment. perl -MMIME::Base64 [...]

Delay the DOM ready event / Generate a dummy file

dd if=/dev/zero of=dummy.file bs=1000000 count=1 This will generate a 1Mb (approx) file. Useful for tests. In my particular case, I'm trying to delay the DOM ready event in JavaScript - so I'm going load a large file in a script tag - which will load before the DOM ready is fired. To delay the DOM [...]