Skip to content

Instantly share code, notes, and snippets.

View rkgudboy's full-sized avatar
🇮🇳
Working from Home

Rohit Kashyap rkgudboy

🇮🇳
Working from Home
View GitHub Profile
@rkgudboy
rkgudboy / master-slave
Last active August 29, 2015 14:17
Creating and running Multiple instances of MariaDB
cd server # the source diectory
mkdir b # build directory
mkdir install # the install location
cd b
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../install && make -j2 install
#-DCMAKE_BUILD_TYPE=Debug is good of debugging.
# -DCMAKE_INSTALL_PREFIX=../install is to install everything under the install/ directory.
#-j is for number of jobs that can run simultaneously
cd install
mkdir master
@rkgudboy
rkgudboy / Mysql2 on 12.04
Created February 11, 2015 04:57
Installation of MySQL 5.6 in Ubuntu 12.04 LTS for setting up mysql2 rubygem
apt-get -y remove mysql-server
apt-get -y autoremove
apt-get -y install software-properties-common
add-apt-repository -y ppa:ondrej/mysql-5.6
apt-get update
apt-get -y install mysql-server
sudo apt-get install libmysqlclient-dev
gem install mysql2
@rkgudboy
rkgudboy / Updated RBase Installation for Ubuntu
Last active August 29, 2015 14:14
Steps to install Latest R core in Ubuntu 12.04
#Update the list of Sources in your Ubuntu Installation
sudo gedit /etc/apt/sources.list
#Add the below code in Sources Window
#deb http://cran.rstudio.com/bin/linux/ubuntu precise/
#Updating Keyserver
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
#Adding Repository
@rkgudboy
rkgudboy / Install Sublime Text on Ubuntu [via sudo]
Created February 4, 2015 12:41
Sublime Text Editor Installation on Ubuntu [via sudo]
#adding repository
sudo add-apt-repository ppa:webupd8team/sublime-text-2
#updating
sudo apt-get update
#install Sublime text
sudo apt-get install sublime-text
@rkgudboy
rkgudboy / Sublime Text Editor Installation [via Terminal]
Last active August 29, 2015 14:14
Installing Sublime Text on Ubuntu [via Terminal]
#Fetch the latest archive of Sublime Text, here 2.0.2 x64
wget http://c758482.r82.cf2.rackcdn.com/Sublime\ Text\ 2.0.2\ x64.tar.bz2
#extract the file
tar vxjf Sublime\ Text\ 2.0.2\ x64.tar.bz2