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 | |
| //saves ip address and timestamp | |
| $str=date("Y-m-d H:i:s") . ": ". $_SERVER['REMOTE_ADDR'] . "n"; | |
| file_put_contents("ip_list.txt", $str, FILE_APPEND); | |
| Sourced from: | |
| header("content-type: image/gif"); | |
| //43byte 1x1 transparent pixel gif | |
| echo base64_decode("R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="); |
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
| #install and configure gh before to backup 10 gists | |
| gistlimit=10 | |
| sample=$(gh gist list --limit $gistlimit | awk '{ print $1 }') | |
| for row in $(echo "${sample}"); do | |
| echo $row | |
| if [ ! -d $row ] | |
| then | |
| git clone https://gist.github.com/$row |
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 | |
| function Resize($ImageFile,$OriginalFile) | |
| { | |
| $ext=basename($OriginalFile); | |
| $ext=explode(".",$ext); | |
| $ext=array_pop($ext); | |
| $ext=strtolower($ext); | |
| if ($ext=="jpg" or $ext=="jpeg" or $ext=="jpe") | |
| $img=imagecreatefromjpeg($ImageFile); | |
| elseif ($ext=="png") |
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
| convert NvMj2m.JPG -resize 71x50^ -gravity Center -crop 71x50+0+0 +repage NvMj2m_smallnew.JPG |
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
| convert 1.jpg -resize 450x450 -background white -gravity center -extent 450x450 1_g.jpg | |
| for img in *; do convert $img -resize 180x180 -background white -gravity center -extent 180x180 $img|echo $img ; done |
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
| wget http://svn.apache.org/repos/asf/subversion/trunk/tools/client-side/change-svn-wc-format.py | |
| chmod +x change-svn-wc-format.py | |
| ./change-svn-wc-format.py /my/broken/WC/path/. 1.5 --verbose |
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
| find ./Music/ \( -name "*\?*" -o -name "*:*" -o -name "*\;*" -o -name "*\**" \) | xargs -n1 -I{} rename ? "" {} |
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
| IF LINK onclick="pageTracker._link(this.href); return false;" | |
| IF POST onSubmit="javascript:pageTracker._linkByPost(this)" |
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
| update_option('siteurl', 'http://your.domain.name/the/path' ); | |
| update_option('home', 'http://your.domain.name/the/path' ); |
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
| <script type="text/javascript"> | |
| var _gaq = _gaq || []; | |
| _gaq.push(['_setAccount', ' _gaq.push(['_setAccount', 'UA-10895797-1']);']); | |
| _gaq.push(['_trackPageview']); | |
| _gaq.push(['_addTrans', | |
| '0000', // NUMERO GERADO PARA downgrade svn PRE-RESERVA | |
| '', // | |
| '300.39', // VALOR DA RESERVA | |
| '', |
OlderNewer