Skip to content

Instantly share code, notes, and snippets.

@CodaBool
CodaBool / Dockerfile
Last active October 25, 2024 23:39
AL2 lambda with a Go github release
FROM public.ecr.aws/lambda/provided:al2
# there is a https://hub.docker.com/r/microsoft/mssql-tools image but it does not have the lambda runtime
# there likely is a way to install using the microsoft yum/Fedora repo
# but this AL2 does not have yum-config-manager
# which makes it difficult to add GPG keys
ARG VERSION=v1.8.0
@CodaBool
CodaBool / hooks.js
Created October 18, 2024 16:37
throwaway pastebin (foundry V13 first draft)
Hooks.on("renderTileConfig", async (app, html) => {
const doc = app.document
// game.data.release.generation > 12
const styleExists = Object.keys(game.settings.get(ID, "styles")).includes(
doc.getFlag(ID, "style"),
)
const itemPrettyName = game.items.get(doc.getFlag(ID, "keycard")?.split("@")[0])?.name
let macroPrettyName = game.macros.get(doc.getFlag(ID, "macro"))?.name
let actorPrettyName = game.actors.get(doc.getFlag(ID, "observeActor"))?.name
let journalPrettyName = game.journal.get(doc.getFlag(ID, "journal"))?.name
@CodaBool
CodaBool / agnoster.zsh-theme
Last active May 11, 2026 23:17
oh my zsh theme, edit on the base of agnoster
### Segment drawing
# A few utility functions to make it easy and re-usable to draw segmented prompts
CURRENT_BG='NONE'
case ${SOLARIZED_THEME:-dark} in
light) CURRENT_FG='white';;
*) CURRENT_FG='black';;
esac
@CodaBool
CodaBool / notes.sh
Created April 18, 2024 08:15
Notes on Setting up BTRFS with rollbacks on Arch
# assumes you are using btrfs with the default subvolumes
# assumes you are using grub as your boot loader
# inotify-tools is not needed on all machines
# you can skip and check logs of grub-btrfsd after starting the
# service and it will tell you if inotify-tools is needed
paru -S snapper snap-pac grub-btrfs snapper-rollback inotify-tools
sudo su
cd /
@CodaBool
CodaBool / theme.css
Last active January 14, 2025 21:08
Discord Theme
/**
* SOURCE = https://raw.githubusercontent.com/DiscordStyles/FrostedGlass/deploy/FrostedGlass.theme.css
* REPO = https://github.com/DiscordStyles/FrostedGlass
*/
@import url('https://discordstyles.github.io/FrostedGlass/dist/FrostedGlass.css');
@import url('https://discordstyles.github.io/Addons/windows-titlebar.css');
:root {
--background-image: url('https://i.imgur.com/LgoCOnP.png');
import { Router } from 'itty-router'
const router = Router()
// from client
router.get('/', async (request, env) => {
const url = new URL(request.url)
const token = url.searchParams.get("token")
const module = url.searchParams.get("module")
if (!token || !module) {
{
"id": "terminal",
"title": "Terminal",
"version": "1.0.0",
"url": "https://github.com/CodaBool/terminal",
"bugs": "https://github.com/CodaBool/terminal/issues",
"changelog": "https://github.com/CodaBool/terminal/blob/main/changelog.md",
"download": "https://d3erver.codabool.workers.dev/download?module=terminal-v1.0.0",
"manifest": "https://raw.githubusercontent.com/CodaBool/terminal/main/module.json",
"description": "A customizable interactive terminal from which players can read and reveal journal entries",
@CodaBool
CodaBool / index.js
Last active October 26, 2023 20:22
import { Router } from 'itty-router'
const router = Router()
// from client
router.get('/', async (request, env) => {
const url = new URL(request.url)
const token = url.searchParams.get("token")
const module = url.searchParams.get("module")
if (!token || !module) {
@CodaBool
CodaBool / rds.json
Last active March 7, 2023 20:01
rds-versions
[
{
"releaseCycle": "8.0.32",
"releaseDate": "2023-02-07",
"eol": "2024-02-01",
"type": "minor",
"db": "mysql"
},
{
"releaseCycle": "8.0.31",