Skip to content

Instantly share code, notes, and snippets.

View xero's full-sized avatar
πŸ’­
πŸ’Ύ

xero harrison xero

πŸ’­
πŸ’Ύ
View GitHub Profile
@xero
xero / aws_acm_certificates_expiring_soon.sh
Last active September 26, 2022 21:29
quick and dirty shell script to enumerate all ACM certificates in each region, filter out only automatic renewal eligible certs, then calculate the months/days till they expire. useful for alerting cron jobs. echos could be replaced with curl commands to webhooks, etc.
#!/bin/sh
# ___β•±β•² _____ β•±β•²______ ____β•±β•² ___β•±β•²
# β•² _ β•²β•± .:β•±β•±.:β•²____β•±β•±_β•²_. β•² β•±.β•±__ β•²
# β•²β•² β•± β•±β•± ___β•±β•± .β•²β•± _β•±β•± β•² β•± β•²
# β•±.: β•² β•²_. β•±β•± _. β•²β•± .:β•²β•± β•±
# β•±____β•±β•² __β•²β•±__ β•±β•±______β”‚ β•±β•²_______β•±
# β•²β•± β•²β•± β”‚β•±x0^67^iMP!
# https://0w.nz
# https://x-e.ro
# (K)opimi / CC0 public domain
@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
@xero
xero / python-nameserver.py
Created June 7, 2019 18:44 — forked from dustyfresh/python-nameserver.py
DNS nameserver implemented in python
#!/usr/bin/env python3
import sys
from datetime import datetime
import time
from time import sleep
from dnslib import DNSLabel, QTYPE, RD, RR, RCODE
from dnslib import A, AAAA, CNAME, MX, NS, SOA, TXT
from dnslib.server import DNSServer
@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 / semantic-commit-messages.md
Last active April 15, 2025 01:32
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 / 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 / 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 / keybase.md
Created February 26, 2017 20:58
keybase proof

Keybase proof

I hereby claim:

  • I am xero on github.
  • I am xero (https://keybase.io/xero) on keybase.
  • I have a public key whose fingerprint is 15A4 B803 F8EF F47E 7A21 5049 0DA7 AB45 AC1D 0000

To claim this, I am signing this object:

@xero
xero / coffee.sh
Created February 22, 2017 21:16
animated coffee script!
#!/bin/sh
cup(){
cat << X0
β–„β–„β–„β–„β–„β–„β–„β–„β–„β–„
  β–€β–€β–€ β–€  β–€β–€β–€  β–„
 β–€β–€  β–€β–€β–€β–€      β–€β–€ 
  β–€β–€β–€β–€β–€   [48;5;1
@xero
xero / coffee
Last active March 1, 2024 05:24
coffee ansi art. open your term and run `curl -L git.io/coffee`
β–„β–„β–„β–„β–„β–„β–„β–„β–„β–„
  β–€β–€β–€ β–€  β–€β–€β–€  β–„
 β–€β–€  β–€β–€β–€β–€      β–€β–€ 
  β–€β–€β–€β–€β–€    β–€[4