This is a different blog, more a remainder for me than anything else. Hope that someone else can find these useful… they’re for me!
Recover a failed download with curl:
curl -C - -o partially_downloaded_file 'www.example.com/path/to/the/file'
After searching the forums and trying various things, I still couldn’t find a quick, reliable, free method of burning a VIDEO_TS folder to a pure UDF DVD, so that it would play in regular DVD players, as well trigger DVD Player to start up automatically. Anyway, as often is the case, Terminal had the answers. Just type in this command and change the paths to suit:
hdiutil makehybrid -udf -udf-volume-name DVD_NAME -o MY_DVD.iso /path/to/VIDEO_TS/parent/folder
Make sure that /path/to/VIDEO_TS/parent/folder is the path to the folder containing the VIDEO_TS folder, not the VIDEO_TS folder itself. Once the .iso file has been created, drag this to Disk Utility and hit the Burn button.
Generate a pdf from a markdown file
markdown <File.md> | htmldoc --cont --headfootsize 8.0 --linkcolor blue --linkstyle plain --format pdf14 - > FileFormat.pdf
Android related Commands
Taking screenshot of an Android device
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png
Launch browser and navigate to URL on android devices
adb shell am start -a android.intent.action.VIEW -d URL