How to run ghost in the background

For running ghost blog in the background manually, execute the following within your blog directory. cd /path/to/your/install/ nohup npm start </dev/null 1>/path/to/your/install/logs/stdout.log 2>/path/to/your/install/logs/stderr.log & I perfer to run ghost in …



How to change a users shell to bash

How to change a user's shell to bash is a simple one liner. This is how you can do it in debian or ubuntu. chsh -s /bin/bash username



Add swap file in linux on debian

How to add a swap file to an existing file system is almost trivial. First decide how big you want it. I choose 1GB w/ a 1GB RAM machine. Second create the file. dd if=/dev/zero of=/swapfile bs=1024 count=1048576 Next make it a swap. mkswap /swapfile …



How to mount an additional Elastic Block Store Linux

I needed to add an elastic block store to a Ubuntu Linux Server. I created the instance from with the AWS admin console. What was missing was how to have the Ubuntu instance recognize it. Turns out it is fairly simple. Format, and mount. Mount SSH into the instance and …



Install VirtualBox Guest Additions Command Line

I was digging around searching on how to install the VirtualBox Guest additions without the GUI using the command line. Most of the tutorials out there were of no help. Either with bad or outdated information. I found one article on xmodulo that worked for me. Here's the steps I …



How to specify a different git port

I needed to figure out how to specify a different ssh port for git. Turns out it's very easy. Open up your ssh config file. vim /home/your-user-name/.ssh/config Add a new configuration declaration Host git.example.org User your-user-name Port 22222 Save the new config and try that …



Design and Implementation of a Flexible Application Architecture

Here's a link to the talk I gave at LAPHP meetup on creating a flexible application architecture using Laravel 4. The talk was based around principles of a SOLID architecture. Then going through how it might be applied to a Laravel 4 application. Here's the talk



Array list of all timezones

I needed an array of all the timezones so I could insert it in to a database seeder. So I created one off a list from wikipedia. \$timezones = array( array('abbr'=>'BIT', 'name'=>'Baker Island Time', 'utc'=>'UTC-12'), array('abbr'=>'NUT', 'name'=>'Niue Time', 'utc …



How to install Tomcat7 on Linux Mint

How to install tomcat7 on linux mint is simple. Run: sudo apt-get install tomcat7 tomcat7-admin tomcat7-common That's it. Now to configure the users for the mangers. Open the user file. sudo vim /etc/tomcat7/tomcat-users.xml Make it look like this: <?xml version='1.0' encoding='utf-8'?> < …



Nagios ping fails

I recently setup NagiosXI with their provided amazon ami. It was very simple to setup and everything looked good. Added a couple servers and they all could not be pinged from Nagios. I couldn't ping them from Nagios' ping tool. I could ping them from the command line so I …