Skip to content

Instantly share code, notes, and snippets.

@v-thomp4
v-thomp4 / gist:11394481
Created April 29, 2014 08:55
Install ioncube php5.4
cd /usr/local
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar xzf ioncube_loaders_lin_x86-64.tar.gz
rm -f ioncube_loaders_lin_x86-64.tar.gz
echo "zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.4.so" | sudo tee /etc/php5/conf.d/ioncube.ini
@v-thomp4
v-thomp4 / gist:7a92a4f3812dc4958ee1
Last active December 12, 2023 20:19
things to do after installing elementary OS
@v-thomp4
v-thomp4 / gist:27f66b76e1868ea15c18
Last active August 29, 2015 14:01
The package x-unikey needs to be reinstalled, but I can't find an archive for it.
sudo su
cd /var/lib/dpkg/info
rm -rf x-unikey*
dpkg --remove --force-remove-reinstreq x-unikey
@v-thomp4
v-thomp4 / gist:fab83c947cdd84109c4b
Last active August 29, 2015 14:01
Install Atom ubuntu
sudo apt-get install python-software-properties  
sudo apt-add-repository ppa:chris-lea/node.js  
sudo apt-get update  
sudo apt-get install nodejs  
sudo apt-get install libgnome-keyring-dev  
sudo apt-get update
sudo apt-get install -y build-essential libpcre3-dev libssl-dev
wget 'http://openresty.org/download/ngx_openresty-1.4.3.6.tar.gz'
tar zxvf ngx_openresty-1.4.3.6.tar.gz
cd ngx_openresty-1.4.3.6/
./configure --with-luajit --with-http_stub_status_module
make
sudo make install
/usr/local/openresty/nginx/sbin/nginx -c /etc/nginx/nginx.conf
sudo fdisk /dev/svdb
sudo fdisk /dev/svdc
...
apt-get install -y mdadm
mdadm --create --verbose --auto=yes /dev/md0 --level=0 --raid-devices=2 /dev/xvdb1 /dev/xvdc1
mkfs.ext4 /dev/md0
sudo mkdir -p /data
mount /dev/md0 /data
sudo su
apt-get update && apt-get install -y lua5.1 liblua5.1-dev pkg-config rsync asciidoc
wget http://lsyncd.googlecode.com/files/lsyncd-2.1.5.tar.gz
tar zxf lsyncd-2.1.5.tar.gz
cd lsyncd-2.1.5
export CFLAGS="-march=native -O2"
./configure
make
#!/bin/bash
BACKUP=/home/backups/redis
REDIS_SOURCE=/var/lib/redis/dump.rdb
REDIS_DEST=$BACKUP/$(date +"%Y-%m-%d")-dump.rdb
find $BACKUP/* -name "*.rdb" -mtime +7 -exec rm {} \;
redis-cli save > /dev/null
cp $REDIS_SOURCE $REDIS_DEST

ibus-unikey

sudo apt-get install ibus ibus-unikey ibus-qt4

Keyboard Input Methods --> Input Methods --> Select an input method --> Vietnamese --> Add unikey

sublime 2

sudo add-apt-repository ppa:webupd8team/sublime-text-2  
sudo apt-get update