Skip to content

Instantly share code, notes, and snippets.

View mani95lisa's full-sized avatar

Mani Wang mani95lisa

  • Pamakids
  • BeiJing
View GitHub Profile
@mani95lisa
mani95lisa / node_init.sh
Last active August 29, 2015 14:25
node init
apt-get install nodejs npm git nginx curl imagemagick software-properties-common
npm install -g nrm
nrm use cnpm
ln -s `which nodejs` /usr/bin/node
#install new redis-server
sudo apt-add-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt-get install redis-server
@mani95lisa
mani95lisa / enable.swap
Created November 29, 2016 01:23
To enable the swap you can use for example:
To enable the swap you can use for example:
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1