Skip to content

Instantly share code, notes, and snippets.

rsync -av --progress USERNAME@HOST:/home/nameprod/public_html/wp-content/plugins .
rsync -av --progress USERNAME@HOST:/home/namestag/public_html/wp-content/plugins .
@MikeDre
MikeDre / prepare-commit-msg.sh
Last active October 24, 2019 13:25 — forked from bartoszmajsak/prepare-commit-msg.sh
How to automatically prepend git commit with a branch name
#!/bin/bash
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(develop test)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
<? while ( have_posts() ) : the_post(); ?>
<? if ( have_rows( 'flexible_content' ) ) : ?>
<? while ( have_rows( 'flexible_content' ) ) : the_row(); ?>
<? $layout = get_flexible_content_template_uri( get_row_layout() ); ?>
<? if ( file_exists( $layout ) ) include $layout; ?>
<? endwhile; ?>
<? endif; ?>
<? endwhile; ?>

Allow console logs
// eslint-disable-next-line no-console

1. Open settings.json
Command + Shift + P
Prefrerences: Open Settings (JSON)

2. Turn off Ripgrep
"search.useRipgrep": false

macOS 10.14 Mojave Apache Setup: Multiple PHP Versions

First part in a multi-part blog series for Mac developers

Andy Miller posted on 09/25/2018

Show command palette
CMD + p

Show suggestions (intellisense style)
CTRL + SPACE either on a new line or by highlighting a word

Move all highlighted up or down
ALT + ARROW UP/DOWN

Open integrated terminal