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
| cp -a /mnt/sda8/john/. /mnt/sdb2/JOHN103 |
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
| mysql -h host -u username -p password --default_character_set utf8 database < file.sql |
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 | |
| /**** Initialize Yii */ | |
| require_once($_SERVER['DOCUMENT_ROOT'].'/path/to/yii/framework/yii.php'); | |
| Yii::createWebApplication($_SERVER['DOCUMENT_ROOT'] . '/path/to/config/main.php'); | |
| // ... | |
| $product = Product::model()->findByPk(3); |
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
| for i in `git diff-tree -r --name-only HEAD^ HEAD`; do curl -T "$i" ftp://example.com/$i --user username:password --ftp-create-dirs; done |
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 | |
| apikey=$(git config user.asana-key) | |
| if [ $apikey == '' ] ; then exit 0; fi | |
| comment=$(git log --pretty=oneline -n1) | |
| taskid_pattern='.*#([0-9]*).*' | |
| if [[ $comment = ~$taskid_pattern ]]; then | |
| taskid=${BASH_REMATCH[1]} | |
| else |
NewerOlder