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
<?php | |
// Class | |
$reflector = new ReflectionClass('FooClass'); | |
// Class methods | |
/* | |
array(43) { | |
[0] => string(6) "export" | |
[1] => string(11) "__construct" |
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
netstat -ano -t tcp |
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
expose_php = Off |
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
# -n, --numeric | |
# -t, --tcp | |
# -l, --listening | |
# -p, --protram | |
# -a, --all | |
netstat -ntlpa |
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
# f, --forest (ASCII art process tree) | |
ps faux |
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
curl -I url | |
# or | |
curl --head url |
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
// 1, this | |
$('#selector').on('click',function(){ | |
$(this)... | |
// do stuff with clicked element | |
}) | |
// 2, e.currentTarget | |
$('#selector').on('click',function(e){ | |
$(e.currentTarget).... | |
// do stuff with clicked element |
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
# 0, Standard input (stdin) <0 | |
# 1, Standard output (stdout) 1> | |
# 2, Standard error (stderr) 2> | |
# Examples: | |
# redirect stderr (2) to stdout (1) | |
2>&1 | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" /> | |
</head> | |
<body> | |
<?php | |
// shell command | |
$list = shell_exec('ls'); |
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
# Create Table | |
CREATE TABLE IF NOT EXISTS `foo_table` ( | |
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, | |
`bar_column` varchar(10) NOT NULL, | |
`bat_column` varchar(10) NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
# Load Data | |
load data local infile '/path/to/file.csv' into table `foo_table` |
OlderNewer