Skip to content

Instantly share code, notes, and snippets.

View rpigott's full-sized avatar

Ronan Pigott rpigott

  • Arizona
  • 22:35 (UTC -07:00)
View GitHub Profile
@rpigott
rpigott / hackertyper.sh
Created December 17, 2019 22:06
hackertyper.sh
#!/bin/bash
if [[ ! -f "$1" ]]; then
cat <<-EOF
Usage: ${0##*/} [hacking_file]
EOF
exit 1
fi
hack() {
stty -echo
@rpigott
rpigott / pacrevert
Last active February 6, 2020 19:57
pacrevert
#!/bin/bash
read -d $'\0' HELP <<-EOF
Usage: ${0##*/} [-h|--help]
${0##*/} [-l|--logfile <logfile>] { PACKAGE | - }
Revert package upgrades from the most recent transaction.
Specify which packages on the command line to limit which
are downgraded, or use '-' to read package list from stdin.
@rpigott
rpigott / wikipedia.user.css
Last active July 6, 2020 06:16
Wikipedia dark theme user.css
/* ==UserStyle==
@name Wikipedia Faithful Dark
@namespace github.com/openstyles/stylus
@version 1.0.1
@description Dark theme that tries to preserve the colorful elements of wikipedia
@author Brocellous
@preprocessor less
@var checkbox wide "Wide view" 0
@var checkbox strict "Strict colors" 0
@rpigott
rpigott / _swaymsg
Last active April 28, 2024 13:39
swaymsg zsh completions w/ sway command completion
#compdef swaymsg
typeset -A opt_args
__swaymsg() {
# Reuse socket path from command line if present
swaymsg ${(kv)opt_args[(I)-s|--socket]} "$@" 2>/dev/null
}
# _sway
# sway ipc {{{