Recent Posts

Split string on delimiter in Bash

#!/bin/bash # # Script to split a string based on the delimiter declare my_string declare my_array my_string="Ubuntu;Linux Mint;Debian;Arch;Fedora" IFS=';' read…

UI Scripting in AppleScript

Open the “Accessibility Inspector” app to try to determine each element Example with some UI Scripting for Messages app to…

Crappy Internet connection downloads

export ec=18; while [ $ec -eq 18 ]; do /usr/bin/curl -O -C - "http://www.example.com/a-big-archive.zip"; export ec=$?; done from http://ilovesymposia.com/2013/04/11/automatically-resume-interrupted-downloads-in-osx-with-curl/ sync…