2/09/2015

VIM configuration

Copy the vimrc_example.vim to your home dir cp /usr/share/vim/vim73/vimrc_example.vim ~/.vimrc Download http://www.vim.org/scripts/script.php?script_id=2465 Place in ~/.vim/colors (if folder does not exist, create it) Open the copied .vimrc and append the following two lines: set bg=dark colorscheme wombat256mod

1/04/2015

MySQL: How to clone a database

Here's one way of duplicating a mysql database:
1. Make a dump of the source database: If you only want to dump the structure simply add --no-data to the end of the above command. 2. Open up a MySQL shell: 3. Within the MySQL shell, create a new database and populate it with the dumped data: 4. Optionally create a new user. Give permissions to the new database:

2/15/2014

How to: Shared Folder Permissions Denied - Virtualbox

Make sure that the user is a member of the group vboxsf. sudo adduser xxxxxxx vboxsf

How-to: Guest Additions for VirtualBox 4.3 - Debian 7 (or any of it's derivatives)

Guest Additions is picky about dkms and wanting to build kernel modules. Open the Root Terminal: apt-get install build-essential module-assistant Once installed, the module-assistant can fetch the Linux headers: m-a prepare Have the Guest Additions CD image loaded in your virtual CD drive (VirtualBox "Devices" menu), but don't expect Autorun to work, it only returns "Error autorunning software. Cannot find the autorun program." Don't ask. Instead, still in the Root Terminal, run: sh /media/cdrom/VBoxLinuxAdditions.run and follow the installation prompts. You can then reboot with the 3D Acceleration, display resize and auto-resolution working again.

2/14/2014

git with unverified ssl certificate

If you ever had to work with a remote repo which uses ssl (and it better!), but lacked a valid ssl certificate, you quickly realised that you can't actually work with it ;-) Solution: git config --global http.sslVerify false

2/13/2014

If you're using putty/kitty and want a color scheme that is actually useful, try the following colors:

9/07/2012

Select all in vim

Note: This will only work within vim, copying to the clipboard or when using putty is a different story...