Skip to content

Instantly share code, notes, and snippets.

@openpanzer
openpanzer / openpanzer-save.json
Last active February 6, 2025 23:17
Operation Typhoon - Borodino-1
{"scenario":{"name":"Operation Typhoon - Borodino","maxTurns":24,"date":"1941-10-11T22:00:00.000Z","atmosferic":2,"latitude":3,"ground":0,"turnsPerDay":2,"dayTurn":0,"reinforcements":{"2":[{"row":16,"col":1,"unit":{"eqid":93,"id":-1,"owner":0,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":5,"facing":4,"flag":8,"destroyed":false,"transport":{"eqid":2403,"ammo":0,"fuel":55,"icon":"resources/units/images/zy42.png"},"carrier":0,"moveLeft":0,"ammo":5,"fuel":0,"hasAnimation":false,"hits":0,"experience":200,"entrenchment":1,"entrenchTicks":0,"leader":-1},"turn":"2","id":1},{"row":14,"col":1,"unit":{"eqid":602,"id":-1,"owner":0,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":5,"facing":4,"flag":8,"destroyed":false,"transport":{"eqid":2404,"ammo":0,"fu
import time
import board
import neopixel
from digitalio import DigitalInOut, Direction, Pull
pixel_pin = board.D2
num_pixels = 16
switch = DigitalInOut(board.D3)
switch.direction = Direction.INPUT
{
"certified": false,
"deleted": false,
"docker_image_digest": "sha256:bda30644f5ac916eca4cc77e5b8c125005ec2f0f87b936ae092ddf419b545b13",
"docker_image_id": "sha256:3cd362c9fb64a1bd940e00580a641a3a79d4d125f16318db5a859b26557dcae4",
"image_id": "sha256:bda30644f5ac916eca4cc77e5b8c125005ec2f0f87b936ae092ddf419b545b13",
"parsed_data": {
"architecture": "amd64",
"created": "2025-02-06 19:31:22.155888014 +0000 UTC",
"image_id": "sha256:bda30644f5ac916eca4cc77e5b8c125005ec2f0f87b936ae092ddf419b545b13",
[
{
"animeEng": "Vinland Saga",
"animeRomaji": "Vinland Saga",
"songName": "Dark Crow",
"artist": "MAN WITH A MISSION",
"type": "Opening 2",
"correctCount": 94,
"startTime": 2,
"songDuration": 89.000666,
@sora10pls
sora10pls / [Radical Cobblemon Trainers] Trainer Data
Last active February 6, 2025 20:12
A detailed parse of the Trainers in the "Radical Cobblemon Trainers" add-on mod.
===
Ace Trainer Alexa
Max Item Uses: 5
Bag Items: Hyper Potion (×2)
===
- Clefable (♂) (Lv. 83) (Nature: Modest) (Ability: Magic Guard) (Moves: Moonblast / Fire Blast / Thunderbolt / Stealth Rock) (IVs: 31/31/31/31/31/31) (EVs: 252 HP / 252 SpA / 6 Spe) (Held Item: Life Orb)
- Wigglytuff (♂) (Lv. 83) (Nature: Bashful) (Ability: Sheer Force) (Moves: Moonblast / Flamethrower / Thunderbolt / Hyper Voice) (IVs: 31/31/31/31/31/31) (EVs: 4 HP / 40 Spe) (Held Item: Life Orb)
- Chansey (♀) (Lv. 83) (Nature: Bold) (Ability: Natural Cure) (Moves: Wish / Toxic / Seismic Toss / Protect) (IVs: 31/31/31/31/31/31) (EVs: 252 HP / 252 Def) (Held Item: Eviolite)
- Komala (♂) (Lv. 83) (Nature: Adamant) (Ability: Comatose) (Moves: Frustration / Knock Off / U-turn / Earthquake) (IVs: 31/31/31/31/31/31) (EVs: 252 HP / 252 Atk / 6 Spe) (Held Item: Choice Band)
- Audino (♂) (Lv. 84) (Nature: Bold) (Ability: Healer) (Moves: Moonblast / Wish / Protect / Toxic) (IVs: 31/31/31/31/31/31) (EVs: 252 HP / 252 Def) (Held Item: Leftovers)
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 6, 2025 20:02
Rimworld output log published using HugsLib
Log uploaded on Thursday, February 6, 2025, 9:02:01 PM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[v:2.3.1.0][mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Core(Ludeon.RimWorld): (no assemblies)
Performance Fish(bs.performance): PerformanceFish(0.6.2)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)

Send email in proxmox, via sendgrid relay

Sendgrid is useful to send email in a homelab setting if you're sending less than 100 emails/day (in my case it's currently 1, when backups complete each day)

First we want to create a sendgrid account, and get our DNS setup following sendgrids guides.

In Proxmox, we need to install a couple things in the terminal: sudo apt install postfix postfix-pcre mailutils libsasl2-modules

Edit the /etc/postfix/main.cf file and add/update the following lines

@jasl
jasl / test_charging.py
Last active February 6, 2025 21:17
test_charging.py
import serial # pip install pyserial
gabyCRCHi = [
0x00,0xc1,0x81,0x40,0x01,0xc0,0x80,0x41,0x01,0xc0,
0x80,0x41,0x00,0xc1,0x81,0x40,0x01,0xc0,0x80,0x41,
0x00,0xc1,0x81,0x40,0x00,0xc1,0x81,0x40,0x01,0xc0,
0x80,0x41,0x01,0xc0,0x80,0x41,0x00,0xc1,0x81,0x40,
0x00,0xc1,0x81,0x40,0x01,0xc0,0x80,0x41,0x00,0xc1,
0x81,0x40,0x01,0xc0,0x80,0x41,0x01,0xc0,0x80,0x41,
0x00,0xc1,0x81,0x40,0x01,0xc0,0x80,0x41,0x00,0xc1,
const http = require('http')
const express = require('express')
const WebSocket = require('ws')
const app = express()
const server = http.createServer(app)
const wss = new WebSocket.Server({ server })
const deviceUrl = 'ws://192.168.1.99/timerws'
const deviceSocket = new WebSocket(deviceUrl)
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 6, 2025 20:01
Rimworld output log published using HugsLib
Log uploaded on Thursday, February 6, 2025, 9:01:19 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4)
Vanilla Expanded Framework(OskarPotocki.VanillaFactionsExpanded.Core): 0ModSettingsFramework(1.0.0), 0MultiplayerAPI(av:0.3.0,fv:0.3.0), 0PrepatcherAPI(1.1.1), ExplosiveTrailsEffect(1.0.7140.31563), GraphicCustomization(1.0.0), HeavyWeapons(1.0.0), KCSG(av:1.1.2,fv:24.11.29), MVCF(2.0.0.1), NoCamShakeExplosions(1.0.0), OPToxic(1.0.0), Outposts(av:3.0.0,fv:1.0.0), PipeSystem(av:1.0.1,fv:22.7.29), RecipeInheritance(1.0.1), RRO(1.0.0), SmokingGun(1.0.0), VanillaStorytellersExpanded(1.0.0), VanillaWeaponsExpandedLaser(0.0.0), VFECore(av:1.1.7,fv:1.1.9), VWEMakeshift(1.0.0)
Vanilla Chemfu