Monthly Archives: January 2015

replace MySQL with MariaDB on cPanel

cp -Rf /var/lib/mysql /var/lib/mysql-old
mv /etc/my.cnf /etc/my.cnf-old

/scripts/update_local_rpm_versions –edit target_settings.MySQL50 uninstalled
/scripts/update_local_rpm_versions –edit target_settings.MySQL51 uninstalled
/scripts/update_local_rpm_versions –edit target_settings.MySQL55 uninstalled

/scripts/check_cpanel_rpms –fix –targets=MySQL50,MySQL51,MySQL55

vi /etc/yum.repos.d/mdb.repo
# MariaDB 10.0 CentOS repository list – created 2015-01-16 13:06 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

yum install MariaDB-Galera-server MariaDB-client galera

/etc/init.d/mysql start
mysql_upgrade
/etc/init.d/mysql restart

/scripts/easyapache –build

vim Python-mode

Python-mode is a vim plugin that helps you to create python code very quickly by utilizing libraries including pylint, rope, pydoc, pyflakes, pep8, and mccabe for features like static analysis, refactoring, folding, completion, documentation, and more.

vim ~/.vimrc
” Pathogen load
filetype off

call pathogen#infect()
call pathogen#helptags()

filetype plugin indent on
syntax on

cd ~/.vim
mkdir -p bundle && cd bundle
git clone git://github.com/klen/python-mode.git