This file contains 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
pear config-set preferred_state beta | |
pecl install package-beta |
This file contains 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
cd /path/to/msyql_src | |
xrgs rm < install_mainfest.txt | |
rm -rf /path/to/DCMAKE_INSTALL_PREFIX |
This file contains 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
openvz: iptables -t nat -A POSTROUTING -s 10.8.0.0/255.255.255.0 -j SNAT --to-source your-vps-ip | |
xen: iptables -t nat -A POSTROUTING -o eth0 -s 10.8.0.0/24 -j MASQUERADE |
This file contains 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
$('#tree').mouseover(function(e){ | |
if(e.target==this) $(this).css('background','#FFC'); | |
// or | |
if( $(this).is( $('#tree') ) ) $(this).css('background','#FFC'); | |
}); | |
This file contains 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
-webkit-linear-gradient( [<point> || <angle>,]? <stop>, <stop> [, <stop>]* ) | |
link: http://www.cnblogs.com/lhb25/archive/2013/02/17/css3-linear-gradient.html |
This file contains 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
vi /usr/share/icon/default/index.theme | |
In [Icon Theme], set: | |
Inherits=DMZ-Black | |
Logout & Login |
This file contains 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
http://www.linuxidc.com/Linux/2013-07/87062.htm |
This file contains 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
#!/bin/bash | |
#################### | |
# REQUIRE PACKAGES | |
# Nginx | |
# Mysql | |
# Memcached | |
# libmcrypt,mhash,mcrypt,re2c | |
# PHP | |
##################### |
This file contains 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
http://lesca.me/archives/iptables-tutorial-structures-configuratios-examples.html | |
http://www.cnblogs.com/wangkangluo1/archive/2012/04/19/2457072.html | |
iptables -I INPUT -p tcp --dport 22 -j ACCEPT | |
iptables -I INPUT -p tcp --dport 80 -j ACCEPT | |
service iptables save |
This file contains 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 install compiz-plugins-extra |
OlderNewer