Skip to content

Instantly share code, notes, and snippets.

@haio
haio / rsa-keygen
Created December 3, 2012 07:27
Command to generate RSA
ssh-keygen -t rsa
@haio
haio / gist:4202290
Created December 4, 2012 09:54
something about git
git status
git add .
git commit -m "comment"
git pull
git push
@haio
haio / gist:4221635
Created December 6, 2012 03:48
install flash plugin for ubuntu
sudo apt-get install flashplugin-nonfree
@haio
haio / routes
Created December 8, 2012 07:14
useful tip
rake routes | less
@haio
haio / gist:4336668
Last active December 9, 2015 22:18
not for sell or sent
not for sale or rent
@haio
haio / gist:4377547
Created December 26, 2012 03:01
login remote sever via SSH
# ssh -p 22 root@address
## First
if the remote sever don't have your public key,you will nedd to login by put the password,the whole process should be encrypt but you may connect to the server that you are not willing to.
##Second
the second way is more safely, you need put your puiblic key in .ssh/authorized_keys of remote server,by this you just type "ssh root@address" in your commandline, it's very simple and safe.
X从一个拥有开放头脑的封闭社会,成为了一个拥有封闭头脑的开放社会
@haio
haio / gist:4407284
Created December 29, 2012 14:43
团队精神 -----卓洛
每个人抱着必死的决心去做自己的事,我的事做好了,就轮到你了,做不好的话我就揍扁你!
@haio
haio / gist:4413295
Created December 30, 2012 15:26
Motto
don't use a grenade to dig a hole when a shovel will do.
@haio
haio / gist:4554090
Created January 17, 2013 06:17
unicorn_nginx
unicorn_rails -c config/unicorn.rb