Skip to content

Instantly share code, notes, and snippets.

View adamshand's full-sized avatar

Adam Shand adamshand

View GitHub Profile
@adamshand
adamshand / Uptime-Kuma-Status-Page-Dark-Mode-High-Density-Tweaks.css
Created December 15, 2023 07:07 — forked from brooksvb/Uptime-Kuma-Status-Page-Dark-Mode-High-Density-Tweaks.css
These CSS tweaks are for higher density display for Uptime Kuma status pages in dark mode.
:root {
--min-item-width: 28ch;
--max-item-width: 1fr;
--grid-spacing: .25rem;
--item-padding: .25rem;
}
/* Expand container */
.container {
max-width: 98%
@adamshand
adamshand / sshfp2cf.sh
Last active July 29, 2024 07:05
Automatically Add SSHFP Records to Cloudflare
#!/bin/bash
# Written by Adam Shand <adam@shand.net> 24 Mar 2023
# Inspired by: https://gist.github.com/mikroskeem/8cd3492ce2aa6699c2fa9db3545a58f1#file-setup_sshfp-sh
# TIPS
# - if ssh host and dns zone are the same, prefix ssh server hostname with a dot (eg. .example.nz)
# - set 'StrictHostKeyChecking accept-new' and 'VerifyHostKeyDNS yes' in ~/.ssh/config
# Use global api key or create a restricted token: https://dash.cloudflare.com/profile/api-tokens
@adamshand
adamshand / ssh.sh
Last active January 6, 2024 03:46
#!/bin/bash
# Wrapper to launch SSH in a new tab with correct variables for iTerm.app
# Written by Adam Shand <adam@shand.net> on 27 April 2004
# 20110305 added -4 -C -c blowfish-cbc by recommendation to speed up things
# 20110306 added exec (doh, obvious!) and autossh logic
# 20190404 open ssh in new iTerm tab
# 20200423 support for new tabs in gnome-terminal and guake
# 20200512 ssh to multiple hosts at once
# 20200513 add support for an ssh jumphost