Bash your way to success with awk, curl, and …uhh gSheets?

Let’s say you have a huge (1k+) list of 301s that you need to test in a CSV called redirects.csv that’s formatted like this: original_url,new_url let’s grab that first column (with the orginal urls), and create a txt file with them awk -F"," '{print $1}' redirects.csv > urls-to-test.txt now let’s test ‘em with curl and dump out the response url and the response code to a new csv xargs -n1 -P 10 curl -o /dev/null –silent –head –write-out '%{url_effective},%{redirect_url},%{http_code}\n' < urls-to-test.
Read more →

Bootstrapping Wordpress: Part 1

Web Development eventually involves dealing with a wordpress site (or multiple), and if you’re like me - you have a bunch of private git repos that all lack wp-config.php files. see wpengine&rsquo;s recommended <code>.gitignore</code> file And if you’re also like me, you probably have a custom git command for hard resets and cleans (I call mine <code>git bleach</code> ) - which means you do a lot of rebuilding, and probably waste a lot of time creating your configs over and over again.
Read more →

Better Bash 4 & Completions on OSX

OS X ships with an outdated version of Bash as its default shell. The preinstalled version dates back to 2007, yes - nearly a decade behind. If you want to use an updated version of Bash and Bash Completions in your shell, you can install them by using Homebrew, a package manager for OS X. Installing via Homebrew Open your terminal and enter this command: brew install bash Now we’ll append our desired (Bash 4) shell’s path to a file of whitelisted system shells, and then change the system shell for our user.
Read more →