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
| # Taken from http://stackoverflow.com/a/134944/462170 | |
| for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; 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
| #!/bin/bash | |
| for fl in *.php; do | |
| mv $fl $fl.old | |
| sed 's/\/Users\/malcolm\/Sites/\/home\/newhaven\/public_html/g' $fl.old > $fl | |
| rm -f $fl.old | |
| 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 | |
| function dateloop($current){ | |
| $holidays = array('2013-05-17'); | |
| $date = date('Y-m-d', $current); | |
| if(date('G', $current) > 15) { | |
| $current = mktime(0, 0, 0, date("m", $current) , date("d", $current)+1, date("Y", $current)); | |
| echo "after 2pm, advancing one day\n"; | |
| $next = date($current); | |
| return dateloop($next); |