super+shift+n | new window |
super+shift+w | close window |
super+o | prompt open file |
super+shift+t | reopen last file |
super+alt+up | switch file |
super+n | new file |
super+s | save |
super+shift+s | prompt save as |
super+alt+s | save all |
super+w | close |
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
--exclude-dir=.svn --exclude-dir=cache |
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 iptables -I INPUT -s 123.1.1.1 -j DROP |
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 iptables -L -n --line-number |
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
svn copy -r [version #] [svnurl]@[version #] . |
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
iptables -D INPUT {rule #} |
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 iptables -I INPUT -s 138.162.8.0/24 -j DROP |
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
wget -c \ | |
http://download.virtualbox.org/virtualbox/4.1.12/VBoxGuestAdditions_4.1.12.iso \ | |
-O VBoxGuestAdditions_4.1.12.iso | |
sudo apt-get install build-essential linux-headers-`uname -r` | |
sudo mount VBoxGuestAdditions_4.1.12.iso -o loop /mnt | |
sudo sh /mnt/VBoxLinuxAdditions.run --nox11 | |
rm *.iso |
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
select COLUMN_NAME from information_schema.COLUMNS where TABLE_NAME='table' |
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
public function action_memcache(){ | |
$memcache_enabled = extension_loaded("memcache"); | |
dump("Memcache enabled: ".$memcache_enabled); | |
//memcached simple test | |
$memcache = new Memcache; | |
$memcache->connect('localhost', 11211) or die ("Could not connect"); | |
$key = md5('9000'); //something unique | |
for ($k=0; $k<5; $k++) { | |
$data = $memcache->get($key); |
OlderNewer