• »

    Copy SSH Key to Remote Server

    1. Generate a new SSH key [bash] ssh-keygen [/bash] 2. Copy Key to Remote Server [bash] ssh-copy-id -i ~/.ssh/id_rsa.pub “user@123.123.123.123 -p 2345″ [/bash] 3. Log into server without password [bash] ssh user@123.123.123.123 -p 2345 [/bash]

    Read More
  • »

    Amazon Kindle. Delete old Documents

    So I have in the past use the amazon kindle and kindlefeeder.com to view rss feeds about various topics. Its a great little service, and had been using this for quite some time. I did however see one drawback. This was in my Amazon.co.uk account I had literally 100′s of kindlefeeder documents building up. The [...]

    Read More
  • »

    TAR File Extraction

    Another handy tip when extracting a tar file and stripping out any sub directories. [code] tar -zxvf filename.tar.gz --strip [number] [/code] Note: Where number is the folder level [code] tar -zxvf filename.tar.gz --strip 2 [/code]

    Read More
  • »

    Install PHP APC from Shell

    The following steps are used to install APC from source onto a Ubuntu Server. [code] sudo aptitude install apache2-dev php5-dev build-essential [/code] Get current version of apc and install it [code] wget http://pecl.php.net/get/APC-3.1.13.tgz [/code] [code] tar xzf APC-3.1.13.tgz [/code] [code] cd APC-3.1.13 [/code] [code] phpize [/code] [code] sudo ./configure --enable-apc --enable-apc-mmap --with-php-config=/usr/bin/php-config --with-libdir=/usr/lib64 [/code] [code] [...]

    Read More
  • »

    Add Colour to Ubuntu Shell

    When you create a new user, the default shell does not use colour. Edit the following file located in your /home/username/ [bash] nano .bash_profile [/bash] Add the following line to the very top [bash] if [ -f ~/.bashrc ]; then . ~/.bashrc; fi [/bash]

    Read More
  • »

    Capsitrano Delete Old Releases

    The following will cleanup old releases [bash] cap environment deploy:cleanup [/bash]

    Read More
  • »

    Stop Magento Success Page From Completing

    The following change is only intended to be used when you are testing the checkout process. Say for example, you would like to stop the posting the orders into magento at the end of the success page. As this will redirect you away from the success page. [php] /app/code/core/Mage/Checkout/controllers/OnepageController.php [/php] [php] public function successAction() { [...]

    Read More
  • »

    Visual Studio Permission Error Running from Share

    When trying to build a Visual Studio Application from a shared folder I came across the following error: [vb] Request for the permission of type ‘System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ failed. Z:\GIT\WebAPI\API\SBT\Maintenance\Pricing\frmImportProductPriceSpecial.resx Web-API [/vb] The fix is as follows: From an Administrative console window run the following command: [vb] caspole.exe -m -ag LocalIntranet_Zone -url \\ip [...]

    Read More
  • »

    Gzip Files

    Use the following to gzip files from shell Compress files using gzip [bash] gzip -c filename.txt > filename.gz [/bash] Decompress files using gzip [bash] gunzip filename.gz [/bash]

    Read More
  • »

    Capistrano Deploy Single File

    Lets say you’re using capistrano for deployments and you dont want to deploy all your source code example usage: single file: [bash] cap environment deploy:upload FILES=’filepath/filename’ [/bash] multiple files: [bash] cap environment deploy:upload FILES=’filepath/*’ [/bash]

    Read More

Recent Posts

»

Copy SSH Key to Remote Server

Posted by on December 3, 2013

1. Generate a new SSH key [bash] ssh-keygen [/bash] 2. Copy Key to Remote Server [bash] ssh-copy-id -i ~/.ssh/id_rsa.pub “user@123.123.123.123 -p 2345″ [/bash] 3. Log into server without password [bash] ssh user@123.123.123.123 -p 2345 [/bash]

»

Amazon Kindle. Delete old Documents

Posted by on June 16, 2013

So I have in the past use the amazon kindle and kindlefeeder.com to view rss feeds about various topics. Its a great little service, and had been using this for quite some time. I did however see one drawback. This was in my Amazon.co.uk account I had literally 100′s of kindlefeeder documents building up. The [...]

»

TAR File Extraction

Posted by on May 26, 2013

Another handy tip when extracting a tar file and stripping out any sub directories. [code] tar -zxvf filename.tar.gz --strip [number] [/code] Note: Where number is the folder level [code] tar -zxvf filename.tar.gz --strip 2 [/code]

»

Install PHP APC from Shell

Posted by on April 1, 2013

The following steps are used to install APC from source onto a Ubuntu Server. [code] sudo aptitude install apache2-dev php5-dev build-essential [/code] Get current version of apc and install it [code] wget http://pecl.php.net/get/APC-3.1.13.tgz [/code] [code] tar xzf APC-3.1.13.tgz [/code] [code] cd APC-3.1.13 [/code] [code] phpize [/code] [code] sudo ./configure --enable-apc --enable-apc-mmap --with-php-config=/usr/bin/php-config --with-libdir=/usr/lib64 [/code] [code] [...]

»

Add Colour to Ubuntu Shell

Posted by on December 11, 2012

When you create a new user, the default shell does not use colour. Edit the following file located in your /home/username/ [bash] nano .bash_profile [/bash] Add the following line to the very top [bash] if [ -f ~/.bashrc ]; then . ~/.bashrc; fi [/bash]