Configure Mac OS X Mail App to respond with Gmail aliases

Assuming you have aliases setup in Gmail, it’s fairly easy to configure the Mail application on OS X to respond to the emails using the appropriate alias.

Read More
Jan 8, 2015 1 min read

Tidying up your security with a Password Manager

Using a password manager adds numerous of security benefits. The key feature being strong unique passwords for each application you use. Two of the most popular password managers are LastPass and 1Password. The main difference is LastPass syncs to all your devices by storing your vault on their servers. 1Password syncs to all your devices via Dropbox and does not save your vault to any other servers. They are both good and whichever you choose to use will be up to you.

Read More
Nov 11, 2014 1 min read

My cask script!

Say goodbye to manual installations

Finally we get our own apt-get like tool for Mac! Check out cask if you haven’t already! Below is my personal script for my setup. Maybe I’ll move this to chef recipe for my mac one day? ;)

Read More
Oct 26, 2014 1 min read

Working with Apple's iOS image orientation

Using PHP and ImageMagick

You might notice pictures taken with an iOS device (iPhone or iPad) look like they are not rotated properly when transferring them to another device or software. This happens because the device is held at a certain angle when the picture is taken and it’s up to the software at the receiving end to display it however it wants.

Apple’s camera will write orientation info into the exif headers of images taken and you can rotate it accordingly.

Here is an example of rotating an image using PHP with the ImageMagick library;

Read More
Oct 17, 2014 1 min read

FTP Sync Script

Digging around my hard drive and found an old FTP sync script I wrote. Sharing it on GitHub now. Enjoy :)

https://github.com/rsumilang/sync-ftp

Read More
Sep 27, 2014 1 min read

Monitor your filesystem events on Linux with inotify

Inotify provides a nifty C API to monitor files and directories. The API hooks into your kernel and responding to events on your filesystem is much more efficient than doing something like writing a cron job to check for changes in a directory every minute. Fortunately, if you’re not a C developer, there is a package called inotify-tools that comes with two programs, inotifywait and inotifywatch. The difference is inotifywait waits for changes and inotifywatch gathers filesystem access statistics.

Read More
Jul 14, 2014 2 min read

How to clean and optimize your Aperture Library

Cleanliness is the next to godliness

After time you will notice your Aperture Library growing ridiculously big. Here a are few tips to shrink it back down and keep it optimal.

Read More
Jul 13, 2014 2 min read

How to enable SSH access to Synology DiskStation

Log into your system with an administrator account and open the 1Control Panel applet. From there, click on 2Terminal & SNMP, 3Enabled SSH service, and 4Apply.

Read More
Jul 12, 2014 1 min read

How to setup automated backups to SSH server with Synology DiskStation

As a best practice, it’s great great to have your data in more than one location. I use my Synology Diskation as a local network file server at my home. The reality is something can happen and I lose all my important data in that little box. From a BBQ, a birthday party, or maybe the house just burns down and now all my data is gone. Unfortunately my network rack at home will never be as secure as a network rack in a data center. So, backup your data because that’s much easier to do rather than trying to restore from no backup. Makes logical sense right? Derp.

Read More
Jul 12, 2014 4 min read

LSB Init.d Script Template

Managing daemons on Linux

Quick little init.d template:

Read More
Jul 7, 2014 2 min read