Skip to content

Instantly share code, notes, and snippets.

View sportshead's full-sized avatar
☢️
hi

sportshead

☢️
hi
View GitHub Profile
@sportshead
sportshead / cf-ufw.sh
Last active February 24, 2024 15:03
Automatically allow Cloudflare IPs in UFW
#!/bin/bash
# simple script to fetch cloudflare IPs and allow them in UFW
# inspired by https://github.com/Paul-Reed/cloudflare-ufw
UFW="/usr/sbin/ufw"
DIR="$HOME/cf-ufw"
rm $DIR/ips.old
mv $DIR/ips $DIR/ips.old
@sportshead
sportshead / keybase.md
Created November 18, 2023 23:48
Keybase proof

Keybase proof

I hereby claim:

  • I am sportshead on github.
  • I am sportshead (https://keybase.io/sportshead) on keybase.
  • I have a public key whose fingerprint is A6B6 D031 782E BDF7 631A 8E7E A874 DB2C BFD3 CFD0

To claim this, I am signing this object:

@sportshead
sportshead / github-copy-repo.user.js
Last active January 27, 2024 13:13
Github Copy Repo
// ==UserScript==
// @name Github Copy Repo
// @namespace sportshead.dev
// @version 2024-01-27
// @description Press ⌘+⌃+C to copy the current repo (e.g. `sportshead/dotfiles`)
// @author sportshead
// @match https://github.com/*
// @icon https://github.githubassets.com/favicons/favicon-dark.png
// @grant none
// @run-at document-start
@sportshead
sportshead / vueuwu.user.js
Created May 8, 2024 19:52
vuejs.org uwuify
// ==UserScript==
// @name vuejs.org uwuify
// @namespace sportshead.dev
// @version 2024-05-08
// @description Redirects vuejs.org homepage links to vuejs.org?uwu
// @author sportshead
// @match https://vuejs.org/*
// @grant none
// ==/UserScript==