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
http://www.websitedimensions.com/ | |
http://www.apple.com/iphone/compare/ | |
http://osxdaily.com/2009/09/26/iphone-screen-resolution-is-480-x-320-pixels/ |
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 echo date('Y'); ?> |
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/sh | |
# http://blog.grimsy.net/2008/07/a-few-svn-pre-commit-hooks/ | |
REPOS="$1" | |
TXN="$2" | |
# Make sure that the log message contains some text. | |
SVNLOOK=/usr/bin/svnlook | |
SVNLOOKOK=1 | |
$SVNLOOK log -t "$TXN" "$REPOS" | \ |
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/sh | |
REPOS="$1" | |
REV="$2" | |
svn update --force --quiet /PATH/ | |
wget --quiet http://SERVER/commit/?project=PROJECT&revision=${REV}&repos=${REPOS} > /dev/null |
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 | |
mysql_connect('S.ERV.ER.IP', 'root', 'PASSWORD'); | |
$target='DATABASE_LOCAL'; | |
$source='DATABASE_LIVE'; | |
$schema_listing_sql = " | |
SELECT | |
TABLE_SCHEMA `database`, | |
TABLE_NAME `table`, |
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
GRANT ALL ON *.* TO 'USERNAME'@'%' IDENTIFIED BY 'PASSWORD'; | |
GRANT ALL ON *.* TO 'USERNAME'@'localhost' IDENTIFIED BY 'PASSWORD'; |
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
find . -iname '*.php' -exec grep -li 'Whats' {} \; |
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
find . -type f -iname '*.php' -mtime -3 |
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
mysql_query('SET time_zone = "+0:00";'); | |
date_default_timezone_set('Europe/London'); |
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 echo $_SERVER['HTTP_USER_AGENT']; ?> |