-
Step 0 Become root
sudo -i -
Step 1
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
| git checkout {{mybranch}} | |
| git reset --hard origin/{{mybranch}} |
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 -d memory_limit=-1 `which composer` |
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
| UPDATE ew92_options SET option_value = replace(option_value, 'https://old-domain.example', 'https://new-domain.example') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
| UPDATE ew92_posts SET post_content = replace(post_content, 'https://old-domain.example', 'https://new-domain.example'); | |
| UPDATE ew92_postmeta SET meta_value = replace(meta_value,'https://old-domain.example','https://new-domain.example'); |
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
| pmset noidle |
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
| fswatch -0 ~/vaults/ | xargs -0 -I {} -t sh -c 'f="{}"; duck --upload sftp://<hostname>/vaults`basename "${f}"` "${f}" -existing overwrite' |
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
| gulp.task('watch', function () { | |
| browserSync.init({ | |
| files: ['{lib,templates}/**/*.twig', '*.php'], | |
| proxy: 'https://' + 'localhost' + '.test', | |
| host: 'localhost' + '.test', | |
| open: 'external', | |
| port: 8000, | |
| https: { | |
| key: | |
| '/Users/' + 'user' + '/.config/valet/Certificates/' + 'localhost' + '.test.key', |
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
| read -p "Username: " user | |
| read -p "Database: " database | |
| date=`date +%m-%d-%Y` | |
| mysql -u $user -p $database > ${database}-${date}.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
| sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.DiskArbitration.diskarbitrationd.plist DADisableEjectNotification -bool YES && sudo pkill diskarbitrationd |
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
| defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="small-spacer-tile";}' && killall Dock |