Friday 17 January 2014

ubuntu: gedit editor plugins


Install Gmate in Ubuntu. GMate is a collection of plugins, themes/styles and other improvements to get TextMate-like features in Gedit. Type the following commands to install Gmate.
sudo apt-add-repository ppa:ubuntu-on-rails/ppa
sudo apt-get update
sudo apt-get install gedit-gmate
When you are finished open your a .html.erb you will see syntax highlighted!  

Sunday 12 January 2014

Generate ssh key pair with using email

MySQL Create Database with UTF8 Character Set

 
CREATE DATABASE `database_name` CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL ON `database_name`.* TO `username`@localhost IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
 
Alternate option by using 'CREATE SCHEMA'
 
CREATE SCHEMA `database_name` CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL ON `database_name`.* TO `username`@localhost IDENTIFIED BY 'password';
FLUSH PRIVILEGES;