This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/dash | |
# Copyright © 2021 Randy Eckenrode | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, pkgs, ... }: | |
{ | |
home.activation = { | |
copyApplications = let | |
apps = pkgs.buildEnv { | |
name = "home-manager-applications"; | |
paths = config.home.packages; | |
pathsToLink = "/Applications"; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Network] | |
Address=192.168._.1/24 # IPv4 address of my router | |
IPv6PrefixDelegation=yes # Use both delegated and static prefixes | |
IPMasquerade=true # Enable NAT for IPv4 | |
[IPv6PrefixDelegation] | |
OtherInformation=yes # Advertise that other information is available via DHCPv6 | |
RouterLifetimeSec=1200 # Specify a router lifetime, so the device advertises itself as one | |
DNS=_link_local # Advertise the link-local address as the DNS server | |
Domains=domain.example.com # Advertise DNS search domains |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syntax = docker/dockerfile:1.1-experimental | |
FROM alpine:latest AS build | |
ARG FOUNDRY_VERSION | |
RUN apk add --update --no-cache --update curl | |
RUN --mount=type=secret,id=foundry \ | |
curl https://foundryvtt.com -c cookies.txt && \ | |
curl -v https://foundryvtt.com/auth/login/ -b cookies.txt -c cookies.txt \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
denyinterfaces igb1 | |
clientid 01:<macaddress> | |
persistent | |
# vendorclassid is set to blank to avoid sending the default of | |
# dhcpcd-<version>:<os>:<machine>:<platform> | |
vendorclassid | |
option domain_name_servers, domain_name, domain_search |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open FsRandom | |
let inline tryParse a = | |
let mutable r = Unchecked.defaultof<'a> | |
if (^a: (static member TryParse: string * ^a byref -> bool) (a, &r)) | |
then Some r | |
else None | |
type Stock = | |
Empty | Monster | Special | Trap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on("chat:message", (msg) => { | |
const cmdName = "sroll"; | |
const params = msg.content.splitArgs(); | |
const cmd = params.shift().substring(1); | |
if(msg.type === "api" && cmd === cmdName) { | |
const to_whom = msg.who.split(" ")[0]; | |
const char_obj = findObjs({"type": "character", "name": msg.who})[0]; | |
if (char_obj === undefined) { | |
sendChat(`player|${msg.playerid}`, `/w ${to_whom} To send secret rolls, you must be using a character. Please switch to your character.`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server: # IPv4 | |
private-address: 198.18.0.0/15 # Benchmarking | |
private-address: 255.255.255.255/32 # Broadcast | |
private-address: 0.0.0.0/8 # Current network | |
private-address: 192.0.0.0/24 # IETF protocol assignments | |
private-address: 192.0.2.0/24 # IETF TEST-NET-1 | |
private-address: 198.51.100.0/24 # IETF TEST-NET-2 | |
private-address: 203.0.113.0/24 # IETF TEST-NET-3 | |
private-address: 224.0.0.0/4 # IP multicast | |
private-address: 169.254.0.0/16 # Link-local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System.Text | |
open System | |
open ICU4N.Text | |
let reverse (str: string) = | |
if str.Length <= 0 then | |
str | |
else | |
let span = str.AsSpan () | |
let breaks = seq { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "ability-scores" | |
version = "0.1.0" | |
authors = ["Randy Eckenrode <[email protected]>"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
rand = "0.7" |
NewerOlder