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
# run directly in terminal. domain is domain name, month = three letter month code (Jan = January) | |
for i in $(mailq | grep DOMAIN | grep MONTH | awk '{ print $1 }') ; do postsuper -d $i; done |
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
git push --mirror [email protected]:username/repo.git |
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
git rebase --onto commit-id^ commit-id HEAD |
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
require_once Mage::getModuleDir('controllers', 'Mage_Checkout') . DS . 'OnepageController.php'; |
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 d -exec chmod 755 {} \; | |
find . -type f -exec chmod 644 {} \; |
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
<?xml version="1.0"?> | |
<layout> | |
<my_updated_template> | |
<reference name="root"> | |
<tpl>page/2columns-left.phtml</tpl> | |
</reference> | |
<my_updated_template> | |
<catalog_category_layered> | |
<update handle="my_updated_template" /> |
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
iPhone|iPod|BlackBerry|Pre|Palm|Googlebot-Mobile|mobi|Safari Mobile|Windows Mobile|Android|Mini|mobile |
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
# If you have two IDE drives that are of identical size, provided that you are sure that they contain no bad sectors, you can execute this command to copy the entire disk and avoid having to install an operating system from scratch. It doesn't matter what is on the original (Windows, LINUX or whatever) since each sector is identically duplicated, the new system will work perfectly. | |
dd if=/dev/hdc of=/dev/hdd |
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
chmod 700 ~/.ssh | |
&& chmod 600 ~/.ssh/id_* | |
&& chmod 644 ~/.ssh/id_rsa.pub | |
&& chmod 644 ~/.ssh/known_hosts | |
&& chmod 600 ~/.ssh/authorized_keys | |
&& chmod 600 ~/.ssh/authorized_keys2 |
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
$.strPad = function(input, pad_length, pad_string, pad_type){ | |
var output = input.toString(); | |
if (pad_string === undefined) { pad_string = ' '; } | |
if (pad_type === undefined) { pad_type = 'STR_PAD_RIGHT'; } | |
if (pad_type == 'STR_PAD_RIGHT') { | |
while (output.length < pad_length) { | |
output = output + pad_string; | |
} | |
} else if (pad_type == 'STR_PAD_LEFT') { | |
while (output.length < pad_length) { |
OlderNewer