Skip to content

Instantly share code, notes, and snippets.

[alias]
alias = config --get-regexp ^alias
editconfig = !sub ~/.gitconfig
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all
mylog = log --graph --decorate --all --oneline
tlog = !TortoiseGitProc.exe /command:log &
ci = commit
s = status -s
lg = log --graph --decorate --all --oneline
dt = difftool -y --dir-diff
<?php
// Populate this array with your shortcode tag names (not including brackets).
$shortcodes = array( 'contextbox' );
// Leave this array alone; it's what we'll use to stash shortcode content in until wpautop has safely passed.
$shortcode_replacements = array();
// See wp-includes/default-filters.php for core WordPress filter priorities
// 9 comes right before wpautop at 10
<?php
// functions.php
add_shortcode( 'contentbox', 'mw_shortcode_contentbox' );
function mw_shortcode_contentbox( $attrs, $content = '' ) {
$parsed_attrs = shortcode_atts( array(
'align' => ''
), $attrs );
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
@mwinckler
mwinckler / postgres-hot-tips.md
Last active December 11, 2020 16:34
postgres-hot-tips

PostgreSQL things that might be useful

https://tomcam.github.io/postgres/

Expanded mode

\x changes query output to "expanded" mode so table columns in results are listed vertically instead of horizontally. Run \x again to disable.

How to quit/exit/terminate/leave