Skip to content

Instantly share code, notes, and snippets.

View xero's full-sized avatar
💭
🌃 💾

xero harrison xero

💭
🌃 💾
View GitHub Profile
@xero
xero / coffee
Last active March 1, 2024 05:24
coffee ansi art. open your term and run `curl -L git.io/coffee`
▄▄▄▄▄▄▄▄▄▄
  ▀▀▀ ▀  ▀▀▀  ▄
 ▀▀  ▀▀▀▀      ▀▀ 
  ▀▀▀▀▀    ▀[4
@xero
xero / coffee.sh
Created February 22, 2017 21:16
animated coffee script!
#!/bin/sh
cup(){
cat << X0
▄▄▄▄▄▄▄▄▄▄
  ▀▀▀ ▀  ▀▀▀  ▄
 ▀▀  ▀▀▀▀      ▀▀ 
  ▀▀▀▀▀   [48;5;1
@xero
xero / defcon
Created July 27, 2017 15:46
defcon shell ansi art

 this one goes out to all the {cr,sl,h}ackers... https://defcon.org
  .███████▄  .██████████  .██████████  .██████████  .██████████  .█████▄ ███
 : ░ ███████▄ : ░ ████████ : ░ ████████ : ░ ████████ : ░ ████████ : ░ ████████
 : ▒▒░█ ▀████ : ▒▒░█████▄ : ▒▒░█████   : ▒▒░████ ▀▀ : ▒▒░█▀▀████ : ▒▒░███████
 : ▓▒▒░  █ █ : ▓▒▒░
@xero
xero / ansicat.c
Created January 22, 2019 15:44
cp437 decoder. display ansi art in modern utf8 shells. cc0 / kopimi: unixbros (dcat & x0)
/*
* .
* .__ .______/| .____ ____. .___ __.
* _____\ \ ___/_ \ _|____\____Y __/____ _____\ Y /__.
* / _ \ X / \ X | \ X _ \ | ___/---.
* | \ | / l____ > | | \ | \ |
* | ::.. __l__/ ::.__| / .: /:.__l__ ..:: | ::.. __l__ ..:: |
* l______ / \______/ /___ /| _/ \ ______l______ / \ ______|
* \/ \/ |/ \/ \/ \/ x0!
*
@xero
xero / miasma.Xcolors
Created June 5, 2023 19:10
miasma “fall” colorscheme
// ┏┏┓o┳━┓┓━┓┏┏┓┳━┓
// ┃┃┃┃┃━┫┗━┓┃┃┃┃━┫
// ┛ ┇┇┛ ┇━━┛┛ ┇┛ ┇
// miasma by xero (https://x-e.ro)
*.foreground: #c2c2b0
*.background: #222222
*.cursorColor: #5f875f
! black
*.color0: #222222
@xero
xero / git-pretty-options.txt
Created October 1, 2012 19:59
git pretty format options
git pretty format options
-------------------------
- '%x20': space
- '%H': commit hash
- '%h': abbreviated commit hash
- '%T': tree hash
- '%t': abbreviated tree hash
- '%P': parent hashes
- '%p': abbreviated parent hashes
- '%an': author name
@xero
xero / grokgit.sh
Last active November 2, 2023 21:49
"don't git good, grok git!" - presentation slides
#!/bin/bash
# grok git, presentation shell script
# by xero harrison https://x-e.ro
# house keeping
selfdestruct() {
err=$?
trap '' EXIT HUP INT QUIT PIPE TERM
[[ -d "$TMP" ]] && rm -rf "$TMP"
exit $err
@xero
xero / semantic-commit-messages.md
Last active August 21, 2023 12:58
bb commit style guide :: how we liven up the commit history

semantic commit messages

see how a minor change to your commit message style can make you a better programmer self generate {docs,changelog}, add context to the changeset, enable filtering (e.g. ignore styling or documentation changes), and liven up the commit history!

format: <type>(<scope>): <ticket> subject :emoji:

  • <scope>
    • optional
    • some changes are global or difficult to assign to a single component
  • ``
@xero
xero / awscurl
Last active August 17, 2023 15:25
curl script for aws rest api
#!/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
@xero
xero / _artisan_dreams.md
Last active June 5, 2023 20:35
artisan keycap wishlist

artisan keycap wishlist

sorted artist > sculpt then by colorway desire

daphy v2

duck flick
3rd eye ✨ third eye