setup nerdpatcher
apt install fontforge python3-fontforge curl
curl -sL "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/FontPatcher.zip" -o fontpatcher
cd fontpatcher
apt install fontforge python3-fontforge curl
curl -sL "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/FontPatcher.zip" -o fontpatcher
cd fontpatcher
#!/bin/bash | |
#shellcheck disable=SC2164 | |
# | |
# sync multiple github repos to bare repositories on | |
# a local machine, as well as multiple remote mirrors | |
# | |
# ▓▓▓▓▓▓▓▓▓▓ | |
# ░▓ author ▓ xero <x@xero.style> | |
# ░▓ code ▓ https://code.x-e.ro | |
# ░▓ mirror ▓ https://github.com/xero |
#!/bin/sh | |
# shellcheck disable=SC2155,SC2001 | |
VERSION="1.0.9" | |
DATE_CMD="date" | |
SED_CMD="sed" | |
# use gnu coreutils on macOS: brew install coreutils | |
if [ "$(uname)" = "Darwin" ]; then |
// ┏┏┓o┳━┓┓━┓┏┏┓┳━┓ | |
// ┃┃┃┃┃━┫┗━┓┃┃┃┃━┫ | |
// ┛ ┇┇┛ ┇━━┛┛ ┇┛ ┇ | |
// miasma by xero (https://x-e.ro) | |
*.foreground: #c2c2b0 | |
*.background: #222222 | |
*.cursorColor: #5f875f | |
! black | |
*.color0: #222222 |
#!/bin/bash | |
# interactive aws elastic ip miner tool, get a cool aws ip! | |
# usage: AWS_PROFILE=dev AWS_REGION=us-west-1 ./getip | |
# CC0 xero | https://x-e.ro | https://github.com/xero | |
declare -g region='us-east-2' tmp='' | |
tmp="$(mktemp /tmp/getip.XXXXXXXXXX)" || { echo "failed creating temp file"; exit 1; } | |
[ -z "$AWS_REGION" ] || region="$AWS_REGION" | |
function requirements() { |
#!/bin/bash | |
# CIDR - the CIDR block calc & cheatsheet | |
# CC0 xero | https://x-e.ro | https://github.com/xero | |
usage() { | |
EXITCODE=0 | |
if [ -n "$1" ] && [ "$1" -eq "$1" ] 2>/dev/null; then | |
EXITCODE=$1 | |
fi | |
me="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")" |
#!/bin/bash | |
# heinous edit of a yank script by samoshkin | |
# https://github.com/samoshkin/tmux-config/blob/master/tmux/yank.sh | |
# tries to push to every clipboard it possibly can xD | |
set -eu | |
shopt -s extglob | |
installed() { | |
type "$1" &>/dev/null | |
} |
This guide will help you setup docker locally for building and testing services behind the AWS CDE firewall by bridging your VPN connection to Docker.
brew install docker
Edit your config list file:
~/Library/Group\ Containers/group.com.docker/cni/10-default.conflist
Change all the subnet, gateway, and nameserver values from 10.1.0.1
to an adjacent subnet within your private VPC. e.g. 100.200.0.1
for me docker was colliding with an existing private subnet.
#!/bin/sh | |
# ___╱╲ _____ ╱╲______ ____╱╲ ___╱╲ | |
# ╲ _ ╲╱ .:╱╱.:╲____╱╱_╲_. ╲ ╱.╱__ ╲ | |
# ╲╲ ╱ ╱╱ ___╱╱ .╲╱ _╱╱ ╲ ╱ ╲ | |
# ╱.: ╲ ╲_. ╱╱ _. ╲╱ .:╲╱ ╱ | |
# ╱____╱╲ __╲╱__ ╱╱______│ ╱╲_______╱ | |
# ╲╱ ╲╱ │╱x0^67^iMP! | |
# https://0w.nz | |
# https://x-e.ro | |
# (K)opimi / CC0 public domain |