Skip to content

Instantly share code, notes, and snippets.

@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) => {
@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 / 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 / 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 / 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 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 / 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');