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
//Ignoring modifications to tracked files | |
git update-index --assume-unchanged FILENAME | |
//undo | |
git update-index --no-assume-unchanged FILENAME | |
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
# The loopback interface | |
auto lo | |
iface lo inet loopback | |
# Configuration for eth0 and aliases | |
# This line ensures that the interface will be brought up during boot. | |
auto eth0 eth0:0 | |
# eth0 - This is the main IP address that will be used for most outbound connections. |
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
//remove deleted files from the index (unstage) | |
git ls-files -d | xargs git rm --cached |
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
rsync -vrz --ignore-existing --size-only -e "ssh -i /Users/mark/id_rsa-readonly" readonly@1.1.1.1:/var/www/project/images/2012 /var/www/project/images/ | |
//note the the source has no trailing slash | |
// target has a trailing slash |
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
AuthType Basic | |
AuthName "a" | |
AuthUserFile "/home3/amcsycom/.htpasswds/public_html/wp-admin/passwd" | |
require valid-user |
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
wget -r ftp://username:password@ftp.hostname.com/public_html/ |
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
mysqldump --user=wikiadmin --password --host=db.mywiki.com wikidb > wikidb.sql |
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
#Recursive | |
scp -r local-folder-name username@hostname:public_html/wp-content/plugins/ |
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
Clearing cache, won't flush image styles: http://drupal.org/node/997332 | |
You could: | |
delete them manually | |
use image_style_flush | |
use the command line: rm -rf sites/default/files/styles | |
use drush: drush image-flush |
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
ssh -D 8080 -C -N username@example.com |
OlderNewer