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
perl -pi -w -e 's/Databese/Database/g;' *.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
var _=["a","eq","href","attr","#",4]; | |
$(_[0])[_[1]](_[5])[_[3]](_[2],_[_[5]]); |
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
chgrp -R sharer /srv/share; find /srv/share/* -type d -exec chmod g+srw {} \; |
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
replace "<\?=\$(.*)\?>" to "<?php echo \$\1; ?>" | |
and then "<\?(?!php)" to "<?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
fgrep -niIR "foo" . |
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
setTimeout(function (obj){(function(){ | |
/*here goes the callback code*/ | |
}).apply(obj)},time,this); |
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 $text=preg_replace ('/&(?!amp;|quot;|nbsp;|gt;|lt;|laquo;|raquo;|copy;|reg;|#[0-9]{1,5};|#x[0-9A-F]{1,4};)/','&', $text); |
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
#!/usr/bin/php5 | |
<?php | |
if (!isset($argv)||$argc!=2||$argv[1]=='-h'||$argv[1]=='--help') { | |
echo <<<EOH | |
usage : | |
formatXMLNicely.php unformated.xml > formated.xml | |
EOH; | |
} else { |
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
#!/usr/bin/php | |
<?php | |
$silent=false; | |
if($argc>2&&$argv[2]=="-") { | |
$silent=true; | |
} else { | |
fputs(STDOUT,"Enter text:"); |
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
#!/usr/bin/php | |
<?php | |
//echo "kopeteHistXml2Html.php - Exporting Kopete history xml-files to html (CLI-Version)"; | |
$doc=simplexml_load_file($argv[1]); | |
//var_dump($doc); | |
$new_msgs=array(); |