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
| # Invoke with | |
| # | |
| # awk -f script.awk -v term=li blocktypes.tsv | |
| # | |
| # With blocktypes.tsv: | |
| # | |
| # list List ul,ol | |
| # revue Revue list | |
| # paragraph Paragraph text | |
| # image Image image,picture |
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
| #!/bin/bash | |
| CMD=$(basename "$0") | |
| CONF="$HOME/.x.conf" | |
| # shellcheck disable=1090 | |
| [ -f "$CONF" ] && source "$CONF" | |
| X_BASE=${X_BASE:-$HOME/Desktop} | |
| X_LOG=${X_LOG:-$X_BASE/log.txt} | |
| X_ARCHIVE_TEMPLATE=${X_ARCHIVE_TEMPLATE:-+$X_BASE/tasks-%Y-%m-%d.txt} |
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
| #!/usr/bin/env node | |
| const fs = require('fs'); | |
| const readline = require('readline'); | |
| const rl = readline.createInterface({ | |
| input: process.stdin, | |
| output: process.stdout, | |
| terminal: false, | |
| }); |
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
| set -e | |
| # Clean | |
| if pgrep -f Docker.app ; then | |
| echo "Please manually quit Docker and try again." | |
| exit 1 | |
| fi | |
| # Prep | |
| echo "Starting Docker daemon…" |
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
| #!/bin/sh | |
| ffmpeg -i "$1" -vf "fps=10,scale=740:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 output.gif |
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 | |
| /* | |
| Plugin Name: Test | |
| */ | |
| function my_test_enqueue_scripts() { | |
| wp_enqueue_style( | |
| 'my-test-style', | |
| plugins_url( 'style.css', __FILE__ ) | |
| ); |
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
| #!/bin/sh | |
| set -e | |
| callee="$1" | |
| invocation="$@" | |
| target="" | |
| case "$callee" in | |
| docker-compose) |
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
| #!/bin/bash | |
| TEST_SUITE="change-detection" | |
| TEST_NAME="consecutive edits" | |
| E2E_PATCH="bisect-e2e.diff" | |
| skip() { | |
| echo Skipping: $@; exit 125 | |
| } |
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
| let mapleader = " " | |
| let maplocalleader = " " | |
| filetype plugin on | |
| " === Begin Plug | |
| if empty(glob('~/.vim/autoload/plug.vim')) | |
| silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
| \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
| endif |