Turn email ( SMTP ) back on in OS X Mountain Lion
I upgraded to Mountain Lion a few days ago and I have to say that I have had several major disappointments. Overall it is great. Still pretty, faster than Lion, and I have not experienced the battery...
View ArticleBash: Recursively adding an extension to all files without extensions
While attempting to import an existing website to WordPress I noticed that the local copy of the website I had created with wget --mirror did not have any file extensions. This makes sense because the...
View ArticleCount lines of code in files recursively
If you are attempting to find a count of the total lines of code in files in a directory recursively from Linux or Mac OS X the following command will do what you want. This particular command prints...
View ArticleHow to retrieve a usable date format from the Telligent REST API
Telligent's Community Server has a REST API that allows developers to tap into almost every aspect of the database. While creating an importer for WordPress I was attempting to backfill posts with the...
View ArticleHow to disable auto correct on Skype
The newer versions of Skype (6.5.0.443 as of this post) have an auto correct feature, which while great in theory sucks in practice. By default Skype is configured to automatically correct spelling as...
View ArticleSyncing Alfred App preferences between machines
I am setting up a new Macbook Air and have been rocking Alfred App on the original machine. I have a pretty good configuration going and do not feel like redoing it. Turns out it is pretty easy to pull...
View ArticleAdd or Update your vSphere or ESXi license key through the terminal
If you are like me and you forgot to input your vSphere or ESXi license key before it expired not to fear! It is possible to update the license key through the terminal. The license is stored in a...
View ArticleQuick and easy way to show the current Git branch on your command prompt
If you work with lots of branches in Git it is nice to be able to see at a glance which branch you are on instead of typing git branch each time. Here are 4 quick lines you can add to your bash prompt...
View ArticleFind your most commonly used Linux commands
Was looking through some old documents ( From 2007! ) and I ran across a neat command that I had forgotten about. This command searches through your bash shell history for the most commonly used...
View ArticleResponding to Critical Vulnerabilities in WordPress Plugins
This is a video from the April 2014 Seattle WordPress Developer Meetup where I spoke on Responding to Critical Vulnerabilities in WordPress Plugins. Slides are available at...
View ArticleHow to get your Archlinux back on Digital Ocean
I love love love DigitalOcean! Spinning up and down boxes to play is fun and the price is awesome! I am even working on moving this site (and all the other sites I host) over to a DigitalOcean box...
View ArticleRecursively count all files in a directory from the terminal
If you utilize the terminal on a regular daily basis like I do you are bound to run into times when you need to get a count of how many files exist in a directory structure. Here is some code that will...
View ArticleCleanup and remove all merged local and remote git branches
After working on a project for a while you wind up with lots of feature and hotfix branches. If you are working on a team with a remote cannonical project repo there will likely be dozens or hundreds...
View ArticleSync shared Google calendars with your iPhone or CalDAV device
When you add your Google account to an iPhone or CalDAV enabled device by default you will only see events from your calendar. If you someone has shared a calendar with you there is no clear way to...
View ArticleRemove untracked local files from Git
If you have need to get rid of a bunch of files that are in your git repo but not yet tracked it can be tedious to do the job one file at a time. Git has you covered with the git clean command....
View ArticleList size of directories in the current folder in terminal
If you would like to list the size of all the directories in your current folder run the following command: du -a -h --max-depth=1 | sort -hr This will provide output similar to 69M . 36M ./plugins 16M...
View ArticleFix “frozen” Evernote app when fullscreen on OS X
The Problem: When you start Evernote it goes into fullscreen mode. You are not able to use any features of Evernote and hear the “Do not click me” error sound. The Cause: There is some sort of message...
View ArticleFind largest files in a directory using the terminal
If you need to find out what the largest files are in a directory and subdirectories here is a command you can run that will find the top 5 largest files. find . -type f | sed 's/.*/"&"/' | xargs...
View ArticleBash script to automatically convert git submodules to regular files
Git submodules drive me batty! They are a great idea in theory however in practical application they are a pain in the butt to work with. I have a project that has accumulated over a dozen submodules...
View ArticleMute and unmute your mic quickly with this Alfred Workflow
I am on a lot of calls for work every day and juggle several different call applications. Finding the apps mute/unmute button quickly gets tedious. On some apps the UI is so poorly designed as to make...
View Article