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
Options +Indexes | |
<Files *> | |
AuthType Basic | |
AuthName "Please enter your username and password." | |
AuthUserFile .htpasswd | |
Require valid-user | |
</Files> |
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 | |
/* | |
Plugin Name: Crash IE 6 | |
Plugin URI: http://gist.github.com/350532 | |
Description: We'll take them by force. | |
Version: 0.1 | |
Author: Kenneth Reitz | |
Author URI: http://kennethreitz.com/ | |
Min WP Version: 2.0 | |
Max WP Version: 3.5 |
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
#!/usr/bin/env php | |
<?php | |
set_time_limit(0); | |
$nDays = 300; // How many days of backups to keep? | |
// MySQL variables | |
$bBackupMySQL = true; // Do you want to backup MySQL databases? | |
$mysql = '/usr/bin/mysql'; | |
$mysqldump = '/usr/bin/mysqldump'; | |
$mysql_server = 'xxxx.com'; | |
$mysql_username = 'xxxx'; |
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
function dir(o){ | |
var keys = []; | |
for(var key in o){ | |
keys.push(key); | |
} | |
return keys; | |
} |
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
sudo curl "http://gist.github.com/raw/372696/bffde4ea5cf23eebd8b0f4ee15708a0a9d0af7f5/ssh-copy-id" -o /usr/local/sbin/ssh-copy-id | |
sudo chmod +x /usr/local/sbin/ssh-copy-id |
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
(function(){ | |
var ua = navigator.userAgent; | |
var b = jQuery.browser; | |
b.engine = ''; | |
b.mobile = false; | |
if(/Windows/.test(ua)){ | |
b.os = 'win'; | |
b.win = true; | |
}else if(/Mac/.test(ua)){ |
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 . -name "*.pyc" -exec rm '{}' ';' |
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
sudo lsof -iTCP -sTCP:LISTEN -P |
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 | |
/* | |
Plugin Name: FooBar | |
Plugin URI: http://gist.github.com/kennethreitz/ | |
Description: RoBar for WordPress | |
Version: 0.42 | |
Author: Kenneth Reitz | |
Author URI: http://kennethreitz.com/ | |
Min WP Version: 2.0 |