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
| #!/bin/bash | |
| # usage: drupal-quick-dump user host database | |
| USER="$1" | |
| HOST="$2" | |
| DB="$3" | |
| DATE=`date +%Y%m%d` | |
| # Get User Password | |
| echo "Please provide the password for ${USER} on db ${DB} hosted at ${HOST}:" |
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
| #!/bin/sh | |
| while read old new branch | |
| do | |
| case "$new-$branch" in | |
| 000000000000000000*) | |
| : echo "ignore deleted" | |
| ;; | |
| *-refs/heads/live ) | |
| echo "UPDATING LIVE SITE"; | |
| git archive $new | ( |
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
| stdin: is not a tty |
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
| /node$ sudo curl http://npmjs.org/install.sh | sh | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 100 5100 100 5100 0 0 4100 0 0:00:01 0:00:01 --:--:-- 8793 | |
| fetching: http://registry.npmjs.org/npm/-/npm-1.0.30.tgz | |
| 0.4.12 | |
| 1.0.30 | |
| cleanup prefix=/usr/local | |
| All clean! |
NewerOlder