Merging a Branch with the Master Branch in git

The commands needed to merge two branches in git. git checkout master git merge BrachName git commit -m “Merged” -a

Enable Bridging for VirtualBox in Fedora 8

To access net on a guest OS installed within VirtualBox, you have to enable bridging. This is what I did……

Stop crond When mysqld is Down

A perl script to stop crond if mysqld is down #!/usr/bin/perl # See if MySQL server is alive or not…

Find if a Variable is Defined in Ruby

This will let you find whether a variable is defined in ruby. if(defined? var_name) then print var_name + ” is…

File Command

Find the contents of a file using this commande file filename.txt

Linux Command to List all the Files Recursively

Recursively list all files in the current folder and all the sub folders ls -R ls -R1

Linux command to get the MD5 of a File

Use this command to find the MD5 of a file. md5sum file.txt

Braching in Git

Use this command to create a new brach in a git Repository git branch NameOfNewBranch

Creating an Alias in fish shell

Fish shell has an easy method to create a command alias… alias del=’rm’ save_function del

Connecting to a Remote MySQL Host

You can connect to a remote mysql server if you have the necessary permissions… mysql -h mysql.remote.com -u user