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
// modified bbs loading animation from bootstrap 386 | |
// https://github.com/kristopolous/BOOTSTRA.386 | |
// view it in action at https://0w.nz | |
document.addEventListener("DOMContentLoaded", function () { | |
$ = function $(selector, context = document) { | |
return Array.from(context.querySelectorAll(selector)); | |
}; | |
_ = function _(action, obj, parent = document.body) { | |
action == "add" ? parent.appendChild(obj) : parent.removeChild(obj); |
#!/bin/bash | |
# ansi art converter | |
help() { | |
echo "Usage: $0 <path-to-ans-file>" | |
echo "Example: $0 ~/docs/ansi/x0-krad.ans" | |
exit 1 | |
} | |
deps() { | |
local dependencies=("iconv" "awk" "perl") |
#!/bin/bash | |
cat << X0 | |
[0m | |
[1;33m/[1;30;43m [38;5;16m[48;5;172m\ βΎβΎβΎ βΎ[1;38;5;227m___ [38;5;16mβΎβΎ βΎβΎβΎβΎβΎ βΎβΎβΎ βΎβΎβΎ βΎβΎβΎβΎ\/βΎβΎβΎ βΎ βΎβΎβΎβΎβΎβΎβΎβΎ[0;33m\[0m | |
[1;30;43m( __[38;5;16m[48;5;172m| [1;38;5;227m( / \ / / _ [33;40m|[0m | |
[1;33m\[38;5;16m[1;30;43m ) [48;5;172m[1m| [38;5;130m/[1;38;5;227m/--/ / _ _ __/ _ _ / \ / / [30m [0;33m|[0m | |
[1;33m:[38;5;130m[48;5;172m /[1;38;5;227m/ (_ /βΎ) (_\ / ) (_/ (_)/ ) [38;5;130m/[1;38;5;227m/--/ / / [0;33m|[0m | |
[1;30mx [33m.[38;5;130m[48;5;172m [1;38;5;227m_ βΎβΎ [38;5;130m/[1;38;5;227m/ (_ / / [1;33m [33;40m:[0m | |
[1;30m0 [33m|[38;5;130m[48;5;172m [1;38;5;227m' ) / _ [33;40m|[0m | |
[1;30m: [33m|[38;5;130m[48;5;172m /[1;38;5;227m/--/ _ _ _ ' ) / _ [0;33m|[0m |
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 <[email protected]> | |
# ββ 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-east-2 ./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 | |
} |