Skip to content

Instantly share code, notes, and snippets.

View glacials's full-sized avatar
🍻
Beer me

Ben Carlsson glacials

🍻
Beer me
View GitHub Profile

Keybase proof

I hereby claim:

  • I am glacials on github.
  • I am glacials (https://keybase.io/glacials) on keybase.
  • I have a public key whose fingerprint is 2459 7D97 89F4 0F5D BD52 8508 EC54 7F7D FF5A C2A8

To claim this, I am signing this object:

@glacials
glacials / keybase.md
Created February 5, 2016 22:06
keybase

Keybase proof

I hereby claim:

  • I am glacials on github.
  • I am glacials (https://keybase.io/glacials) on keybase.
  • I have a public key ASAbRmmNkJWK3lSSvpMGza5t1LQWO3QGeACorXtbOvqMFQo

To claim this, I am signing this object:

@glacials
glacials / update-work-calendar.gs
Last active November 23, 2024 17:54
Sync personal events to your work calendar
// WHAT DOES THIS DO?
//
// If you follow the instructions below, your work calendar will show you as busy during events on
// your personal calendar.
//
//
// NOTES
//
// This code is based on [Jeremy Hon's code][1].
//
@glacials
glacials / easy-s3-delete.md
Last active May 17, 2021 21:59
Bypass typing "permanently delete" for S3 objects

Save this text as a bookmark and click it whenever you would otherwise have to type the text "permanently delete" into the S3 delete object page. The delete button will be enabled.

javascript:document.querySelectorAll("input:disabled, button:disabled").forEach(e => { e.disabled = false; e.classList.remove("awsui-button-disabled") });

Expanded source:

document.querySelectorAll("input:disabled, button:disabled").forEach(e => {
@glacials
glacials / update_lemmy.sh
Last active July 17, 2023 19:53
Update Lemmy (Debian, no Docker)
#!/bin/bash
set -euxo pipefail
cd /var/lib/lemmy-ui
uiversion=$(git tag | grep -v "rc
beta
v
0.9." | tail --lines 1)
@glacials
glacials / update_mastodon.sh
Created July 17, 2023 19:51
Update Mastodon (Debian, no Docker)
if [[ $1 = '' ]]; then
echo "usage: $0 <version>"
echo " $0 restart"
echo ""
echo "example:"
echo " $0 v3.1.2"
exit
fi
if [[ $1 = restart ]]; then