Shell

HowDoI
howdoi terms
Fuck - Corrects previous console command

Wrong command

fuck

Fix the previous command

NPM Check
npm-check -u -g
Optimage

Execute from the folder with photos

optimage.sh
Youtube Upload
youtube-upload --title="title" video.flv
youtube-upload --title="title" --auth-browser video.flv
Merge MP4
MP4Box -cat "file.mp4" -cat "file2.mp4" -new "file_merge.mp4"

Git

Remove file from git but keep
git rm --cached file.txt
Discard local changes
git reset filename
Changes one file two different commits
git add -p
Apply a patch
patch -p0 < ticket-number.patch

WordPress

VVV Debug Tail
vvv-debug-tail site-name
WordPress wp-config.php
define( 'WP_DEBUG', true );
define ('JETPACK_DEV_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'SCRIPT_DEBUG', true );
if ( defined( 'DOING_AJAX' ) && DOING_AJAX || defined( 'DOING_CRON' ) && DOING_CRON ) {
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
} else {
define( 'WP_DEBUG_DISPLAY', true );
}
wp-boilerplate-version
wp-boilerplate-version /path/my-new-plugin/ 1.1.1
Provision specific site
vagrant provision --provision-with=site-[slug]]