Ubuntu check PHP and mysql version

April 7, 2014

From command line: php -v mysql -V or php -i | grep -i ‘^libxml’

How to delete GIT branch both in local and remote?

December 16, 2013

To delete local branch $ git branch -d your_local_branch To delete remote branch $ git push origin :your_remote_branch or $ git push origin –delete “branchName” Deleting remote branch normally done after you or your collaborators are finished with and have merged it into master branch. However deleting local branch maybe due to testing or wrong […]

How to change the SSH Key on a running EC2 instance?

November 22, 2011

How to change the SSH Key on a running EC2 instance? Background Information Is it possible to change the SSH Key on a running EC2 instance? If so, how? Answer For various security reasons it can be a good idea to change ssh keys. Amazon doesn’t actually let you change keys for a live instance. […]