Skip to content

Instantly share code, notes, and snippets.

@guyjin
guyjin / NodeJS install on CentOS
Created March 14, 2013 15:50
Installing Node.js on a CentOS based vagrant vm - ( Python 2.6+ is required as well. I think) :)
sudo yum install gcc-c++ make git
cd /usr/local/src/
sudo git clone git://github.com/joyent/node.git
cd node
sudo ./configure
sudo make
sudo make install
@guyjin
guyjin / gist:5164068
Last active December 14, 2015 23:09
install newer python version on CentOS
//Install gcc and openssl & need to ensure you have bzip available.
yum install gcc-c++ openssl-devel bzip2 bzip2-devel
//Replace the version number (2.7.3) with the version you want.
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
tar -zxvf Python-2.7.3.tgz
cd Python-2.7.3
./configure
@guyjin
guyjin / gist:5164102
Last active December 14, 2015 23:18
install Subversion 1.7* on CentOS
cd /usr/local/src/
wget http://archive.apache.org/dist/subversion/subversion-1.7.0.tar.gz
tar zxf subversion-1.7.0.tar.gz
If download link don’t work get the correct one from http://subversion.apache.org/download/
#Enter extracted source directory and download apache apr and apr-util before compiling subversion
cd /usr/local/src/subversion-1.7.0
wget http://rahulsoni.me/files/apr-util-1.3.12.tar.gz
wget http://rahulsoni.me/files/apr-1.4.5.tar.gz
@guyjin
guyjin / gist:5164966
Created March 14, 2013 20:34
install Subversion 1.7 to CentOS 5 VM
cd /usr/local/src/
wget http://archive.apache.org/dist/subversion/subversion-1.7.0.tar.gz
tar zxf subversion-1.7.0.tar.gz
If download link don’t work get the correct one from http://subversion.apache.org/download/
#Enter extracted source directory and download apache apr and apr-util before compiling subversion
cd /usr/local/src/subversion-1.7.0
wget http://rahulsoni.me/files/apr-util-1.3.12.tar.gz
wget http://rahulsoni.me/files/apr-1.4.5.tar.gz
@guyjin
guyjin / gist:5164968
Created March 14, 2013 20:34
install Subversion 1.7 to CentOS 5 VM
cd /usr/local/src/
wget http://archive.apache.org/dist/subversion/subversion-1.7.0.tar.gz
tar zxf subversion-1.7.0.tar.gz
If download link don’t work get the correct one from http://subversion.apache.org/download/
#Enter extracted source directory and download apache apr and apr-util before compiling subversion
cd /usr/local/src/subversion-1.7.0
wget http://rahulsoni.me/files/apr-util-1.3.12.tar.gz
wget http://rahulsoni.me/files/apr-1.4.5.tar.gz
@guyjin
guyjin / Mac: ubnuntu iso extraction
Created April 30, 2013 05:42
commands to extract iso image from hybrid Ubuntu iso's on a mac.
1. Open the Disk Utility gui application. (Easy way to find it: Search using spotlight.)
2. Drag the original .iso from Finder into the images section of Disk Utility (on the left side underneath the mounted drive list), and then double click on it there. A faded "diskNs1" should appear underneath it, and a dialog box will say the disk is not mountable. The "diskNs1" is the embedded .iso.
3. Run "dd if=/dev/rdiskNs1 of=./ubuntu-extracted.iso bs=1m" to copy out the working .iso image.
@guyjin
guyjin / Mac: ubnuntu iso extraction
Created April 30, 2013 05:42
commands to extract iso image from hybrid Ubuntu iso's on a mac.
1. Open the Disk Utility gui application. (Easy way to find it: Search using spotlight.)
2. Drag the original .iso from Finder into the images section of Disk Utility (on the left side underneath the mounted drive list), and then double click on it there. A faded "diskNs1" should appear underneath it, and a dialog box will say the disk is not mountable. The "diskNs1" is the embedded .iso.
3. Run "dd if=/dev/rdiskNs1 of=./ubuntu-extracted.iso bs=1m" to copy out the working .iso image.
@guyjin
guyjin / gist:5486790
Created April 30, 2013 05:43
Mac: ubuntu iso extraction
1. Open the Disk Utility gui application. (Easy way to find it: Search using spotlight.)
2. Drag the original .iso from Finder into the images section of Disk Utility (on the left side underneath the mounted drive list), and then double click on it there. A faded "diskNs1" should appear underneath it, and a dialog box will say the disk is not mountable. The "diskNs1" is the embedded .iso.
3. Run "dd if=/dev/rdiskNs1 of=./ubuntu-extracted.iso bs=1m" to copy out the working .iso image.
@guyjin
guyjin / Update Node
Created June 3, 2014 05:25
Update Node to latest stable version.
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
@guyjin
guyjin / NPM_update
Created June 3, 2014 05:26
Update NPM
npm update npm -g