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
if ('__proto__' in {}) { | |
// IS NOT IE | |
} else { | |
// IS IE | |
} |
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
<?php | |
$r = mysql_connect($host, $user,$PASS); | |
$query = mysql_query('SELECT name FROM USER',$r) | |
mysql_query('INSERT user VALUES (1,2,3,)',$r) | |
while($row = mysql_fetch_assoc($query)){ |
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
<?php | |
// ... Server NuSoap | |
$server->wsdl->addComplexType( | |
'Product', | |
'complexType', | |
'struct', | |
'all', | |
'', | |
array( |
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 | |
# Usage info | |
show_help() { | |
cat << EOF | |
Usage: ${0##*/} [-hv] [-i INSTALL_DIR] | |
Install PHP QA Tools | |
-h display this help and exit | |
-i INSTALL_DIR directory to install PHP QA Tools |
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
du -sh /var/lib/docker/containers/*| sort -h| grep -v K| awk -F '/' '{print $6}'| xargs docker inspect --format='{{.LogPath}}' | xargs tee |
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 | |
for i in $(seq 1 10);do openssl rand 14 -base64 ; done | |
# $HOME/.bash_profile | |
# alias random-pass='for i in $(seq 1 10);do openssl rand 14 -base64 ; done' |