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/python | |
| """ | |
| Find duplicate files from a given root in the directory hierarchy of a given size | |
| """ | |
| import os | |
| import glob | |
| import sys | |
| import hashlib | |
| import optparse | |
| import timeit |
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
| ssh -fNg -L3310:127.0.0.1:3306 user@server.domain.ext | |
| mysql -h127.0.0.1 -P 3310 -u user -p db_name |
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
| NEWMAC=$1 | |
| echo $NEWMAC | |
| INTERFACE='en0' | |
| echo "Before:" | |
| ifconfig $INTERFACE | grep ether | |
| /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z | |
| ifconfig $INTERFACE ether $NEWMAC | |
| echo "After:" | |
| ifconfig $INTERFACE | grep ether |
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 session_start(); | |
| define('OAUTH_CONSUMER_KEY', ''); | |
| define('OAUTH_CONSUMER_SECRET', ''); | |
| define('OAUTH_REQUEST_URL', 'https://api.twitter.com/oauth/request_token'); | |
| define('OAUTH_ACCESS_URL', 'https://api.twitter.com/oauth/access_token'); | |
| define('OAUTH_AUTHORISE_URL', 'https://api.twitter.com/oauth/authorize'); | |
| define('API_URL','http://api.twitter.com/1/'); |
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
| svn export http://svn.ellislab.com/CodeIgniter/trunk/ && mv trunk html && mv html/system . && mv system/application/ . && NEWHOST=`echo $PWD | awk -F"/" '{ print $4 }'` && sed -i s/example\.com/$NEWHOST/ application/config/config.php |
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 | |
| ## PHP Version of osfameron's fixed width table parser | |
| ## http://github.com/osfameron/misc-opensource/tree/7317cbb59edb0ec9a5e023049d7c6b423d453d7f/parse-table | |
| class row{ | |
| private $_cols = array(); | |
| private $_parsed = array(); | |
| private $_params = array(); |
NewerOlder