Skip to content

Instantly share code, notes, and snippets.

@CodaBool
CodaBool / agnoster.zsh-theme
Last active October 23, 2024 21:39
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 / 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 / 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 / ks.cfg
Created December 28, 2024 05:12
fedora kickstarter
text --non-interactive
lang en_US
keyboard us
timezone --utc America/New_York
ignoredisk --only-use=nvme0n1
rootpw $2b$10$lgstlEJhgRVnTtA7JAzNg.wGIMirkJ63anIKsDbksoIWDhKWA8wSK --iscrypted
user --name=codabool --plaintext --password=codabool --groups wheel
zerombr
clearpart --all --initlabel
autopart --noswap
@CodaBool
CodaBool / samsung_wgt_installs.md
Last active March 5, 2025 11:33
install any `wgt` file onto your Samsung Tizen 8 TV

this is for Tizen 8 Samsung TV. You have other options available if you have an older TV

Windows Guide

  1. Install Tizen Studio

  2. Install the following from the Package Manager dialog:

    From Main SDK:

    • 8.0 Tizen
@CodaBool
CodaBool / main.js
Created March 11, 2025 23:47
V11 Dialog Choose background
const backgrounds = [
"/full/path/to/file.webp",
"https://or.even.urls"
// ... list of images here
]
// Generate the dialog content
let content = '<form><div class="form-group" style="display: flex">';
backgrounds.forEach((bg, index) => {
@CodaBool
CodaBool / main.js
Created March 11, 2025 23:48
V12+ DialogV2 change background
const backgrounds = [
"/full/path/to/file.webp",
"https://or.even.urls"
// ... list of images here
]
// Generate the dialog content
let content = '<form><div class="form-group" style="display: flex">'
backgrounds.forEach((bg, index) => {