Skip to content

Instantly share code, notes, and snippets.

@CodaBool
CodaBool / alien_rpg_rolls.html
Last active March 19, 2025 20:51
I have multiple, see comments
<p>All rolls should be covered by the game system's automation. <br><br>- clicking on stress will roll a panic<br>- clicking on an item will roll for that item.</p>
<p></p>
<p>However, modifiers still need to be handled manually. In the case of items you have picked up, they can affect some dice rolls. For example, a "Maintenance Jack" will give a +1 to Heavy Machinery skill checks. To add this modification right click on the skill and type in your modification.</p>
<p></p>
<h2>Manual</h2>
<p>You can manually roll dice if needed. Type a message following the formatting below into the chat message box to roll the dice. <br></p>
<blockquote>
<pre><code>/r {number of dice}d{faces}</code></pre>
</blockquote>
<p>for example to roll 2 d6 you would send the following message<br></p>
{
"id": "forien-quest-log",
"title": "Forien's Quest Log",
"description": "Provides comprehensive Quest Log system for players and Game Masters",
"authors": [
{
"name": "Forien",
"url": "https://www.patreon.com/forien"
},
{
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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