Skip to content

Instantly share code, notes, and snippets.

@iiiw
iiiw / markdown-cheatsheet.md
Last active February 6, 2023 21:13 — forked from jonschlinkert/markdown-cheatsheet.md
A better markdown cheatsheet.
@iiiw
iiiw / mm-plugin-mod-arm
Last active February 17, 2021 18:29
Adapt mattermost plugins to build ARM executables
#!/usr/bin/env bash
# vim: ft=sh
set -o errexit
cmds=('diff' 'go' 'jq (github.com/stedolan/jq)' 'patch')
for cmd in "${cmds[@]}"; do
command -v "${cmd%% *}" >/dev/null 2>&1 \
@iiiw
iiiw / pdf-screen-res
Last active September 20, 2020 17:56
Optimize pdf files for screen resolution.
#!/usr/bin/env bash
# vim: ft=sh
set -o errexit
set -o pipefail
shopt -s nullglob
usage () {
echo "Usage: $0 "
@iiiw
iiiw / update_neovim
Created March 19, 2020 22:07
Update neovim script
#!/usr/bin/env bash
# vim: ft=sh
set -o errexit
set -o pipefail
pushd . >/dev/null
command -v git >/dev/null 2>&1 \
|| { echo "$0: git must be installed" >&2; exit 1; }