This file contains 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
if !1 | finish | endif | |
if empty(glob('~/.config/nvim/autoload/plug.vim')) | |
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall | source $MYVIMRC | |
endif | |
if system('uname -o') =~ '^GNU/' | |
let b:make = 'make' |
This file contains 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
#!/usr/bin/env sh | |
sudo update-alternatives --install \ | |
/usr/bin/llvm-config llvm-config /usr/bin/llvm-config-4.0 200 \ | |
--slave /usr/bin/llvm-ar llvm-ar /usr/bin/llvm-ar-4.0 \ | |
--slave /usr/bin/llvm-as llvm-as /usr/bin/llvm-as-4.0 \ | |
--slave /usr/bin/llvm-bcanalyzer llvm-bcanalyzer /usr/bin/llvm-bcanalyzer-4.0 \ | |
--slave /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-4.0 \ | |
--slave /usr/bin/llvm-diff llvm-diff /usr/bin/llvm-diff-4.0 \ | |
--slave /usr/bin/llvm-dis llvm-dis /usr/bin/llvm-dis-4.0 \ |
This file contains 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 | |
# Usage: either edit for your local, or: | |
# WP_HOME=/var/www/wordpress SITE_DIR=/var/www/foobar.example/htdocs ./ln-wp.sh | |
WP_HOME="${WP_HOME:=/srv/www/wordpress}" | |
SITE_DIR="${SITE_DIR:=/srv/www/example.com/htdocs}" | |
ln -s "${WP_HOME}/wp-admin" "${SITE_DIR}/wp-admin" | |
ln -s "${WP_HOME}/wp-includes" "${SITE_DIR}/wp-includes" | |
ln -s "${WP_HOME}/wp-activate.php" "${SITE_DIR}/wp-activate.php" |
This file contains 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
muplugins_loaded | |
pre_site_option_siteurl | |
default_site_option_siteurl | |
pre_option_siteurl | |
option_siteurl | |
site_option_siteurl | |
pre_option_home | |
option_home | |
register_taxonomy_args | |
gettext_with_context |
This file contains 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
# Two escapes clears command line | |
"\e\e": "\C-a\C-k" | |
"\t": menu-complete | |
set keymap vi | |
set editing-mode vi | |
$if mode=vi | |
set keymap vi-command | |
set keymap vi-insert |
This file contains 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 | |
/* | |
Plugin Name: Minimal Rest API | |
Description: Very minimal DIY REST API plugin scaffold, must refresh permalink | |
settings to get this to work | |
*/ | |
/** | |
* WP Init Action hook function | |
* |
This file contains 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
#!/usr/bin/php | |
<?php // vim:ft=php | |
if ( ! isset( $argv[1] ) ) { | |
die( 'No number input given' ); | |
} | |
$max = intval( $argv[1] ); | |
for ( $i = 1; $i <= $max; $i++ ) { | |
$string = ''; |
This file contains 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
#!/usr/bin/php | |
<?php // vim:ft=php | |
$max = intval( $argv[1] ); | |
for ( $i = 1; $i <= $max; $i++ ) { | |
$string = ''; | |
$string .= ( 0 === ( $i % 3 ) ) ? 'Fizz' : ''; | |
$string .= ( 0 === ( $i % 5 ) ) ? 'Buzz' : ''; |
This file contains 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
#showtooltip | |
/cancelform [nostance:0,mod:alt] | |
/console autounshift 0 | |
/use Healing Touch | |
/console autounshift 1 |
NewerOlder