Category Archives: Servers

Los Angeles Headshots by Richard Sumilang Richard Sumilang Los Angeles Headshot Photography

Upgrading Emacs to 24.5

on Ubuntu 12.04

Dump this in your terminal:

sudo apt-get install checkinstall
mkdir -p ~/src
cd ~/src
wget https://ftp.gnu.org/gnu/emacs/emacs-24.5.tar.gz
tar xf emacs-24.5.tar.gz
cd emacs-24.5
./configure
make
sudo checkinstall
Read More
Apr 5, 2017 1 min read

How to reference Bitbucket commits to Asana

tl;dr: Use this post-commit hook.

Read More
Jan 31, 2015 2 min read

SynoCommunity packages for Synology NAS

A great source for all sorts of packages such as Node.js, Zshell, BitTorrent Sync, Redis, and Firefox Sync Server just to name a few. Check out the full list of packages or just add the source to your package manager :)

Read More
Jan 9, 2015 1 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

Replace a bad hard drive on a Synology DiskStation RAID 5 with DSM 5.0

I received an alert from my Synology RAID regarding a few bad sectors on a hard drive. Even though the RAID is still operational, it’s best practice to replace the hard drive before any data gets corrupted due to the bad sectors.

Read More
Jun 28, 2014 3 min read

Chef Gearman Cookbook v0.1.0

A little Gearman cookbook I put together for Chef. Supports installing multiple versions by source. Also has a recipe for the PHP extension.

Grab it from GitHub!

kthxbye.

Read More
Jun 12, 2014 1 min read

Update Chef Solo on your Vagrant

Install vagrant-omnibus:

vagrant plugin install vagrant-omnibus

Configure your Vagrantfile before provisioning to the latest version of Chef:

config.omnibus.chef_version = :latest

You can also upgrade to a specific version like so:

config.omnibus.chef_version = "11.12.8"
Read More
Jun 10, 2014 1 min read

Backing up and Restoring with MongoDB

Dump You can dump the database locally using the following mongodump: mongodump --host DATABASE_HOST --port PORT -d YOUR_DATABASE_NAME -u YOUR_DB_USERNAME -p YOUR_DB_PASSWORD This will create a dump folder containing a subfolder named after your database. The default port for MongoDB is 27017. Import You can import the same dump to a local MongoDB instance using something like the following mongorestore after changing into the dump directory: mongorestore --host DATABASE_HOST --port PORT -d DATABASE_NAME_TO_IMPORT_TO --drop DATABASE_NAME_TO_IMPORT_FROM Note: This will drop the collections in the DATABASE_NAME_TO_IMPORT_TO database before restoring the same collections from your database dump.
Read More
May 30, 2014 1 min read