This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add REMI repository: | |
## Remi Dependency on CentOS 6 and Red Hat (RHEL) 6 ## | |
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
## CentOS 6 and Red Hat (RHEL) 6 ## | |
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
## check available mysql version ## | |
yum --enablerepo=remi,remi-test list mysql mysql-server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
multi args: | |
[].values_at(1,2,3) | |
array: | |
[].values_at(*[1,2,3]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= raw your_variable %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#UPDATE:2013-04-02 21:56 | |
127.0.0.1 localhost | |
#SmartHosts START | |
#Google Services START | |
203.208.46.200 chatenabled.mail.google.com | |
203.208.46.200 static.googleusercontent.com | |
203.208.46.200 0.docs.google.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df -ah |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clone: | |
git clone git@gitserver:project_name [local_name] | |
local branch: | |
git checkout -b branch_name | |
git merge --squash branch_name | |
git pull remote_name branch_name (git pull origin master default) | |
git push | |
git branch -D branch_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
multitail -l /var/log/sercure -l /var/log/ | |
multitail -R 3 -l 'uptime' | |
multitail -e 'fail' /var/log/ | |
wkhtmltopdf --use-xserver http://.... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
若只是喜欢 何必夸张成爱 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get purge nginx-* | |
sudo apt-get autoremove |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 |