Skip to content

Instantly share code, notes, and snippets.

View fuchao2012's full-sized avatar

zheng fuchao2012

View GitHub Profile
fuchao2012 / gist:cc578be11d5dc0364cb6
Created July 2, 2015 06:04
aliyun install lamp script

===download the script===

===install manual=== upload the package into your server then find it.

chmod –R 777 sh-1.5.0
cd sh-1.5.0 ./
fuchao2012 / init git
Created June 30, 2015 09:23
initial git program in new OS X machine
1. create a new hub in bitbucket
2. create a new foder in your computer and enter it
3. check if there is ssh
ssh -v
4. create your new ssh-key
mobilemind /
Last active July 2, 2024 00:02
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

isaacs /
Last active July 14, 2024 19:27
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl | sh