Skip to content

Instantly share code, notes, and snippets.

View ceejbot's full-sized avatar
📈
bigger on the inside

C J Silverio ceejbot

📈
bigger on the inside
View GitHub Profile
@ceejbot
ceejbot / middleware.md
Last active September 17, 2024 21:45
Middleware, onions, and crying

Notes on axum middleware

A few days ago I complained about the agony of trying to write per-endpoint middleware in Axum using Tower services and layers, and how awful I found the experience every time Axum exposes Tower to me. (I still feel that way.) Josh Triplett was kind enough to point me to a relative newcomer in the Rust http framework scene, Trillium, as a good alternative.

Here are my notes on the spike I did with Trillium.


tl;dr Axum is much more popular and also finished. You are getting a more well-known and understood project when you choose it. You should probably choose it unless you have a reason not to. For now.

@ceejbot
ceejbot / holy60-build.md
Last active September 4, 2024 15:45
Build instructions for a 60% keyboard in a Holy60 case

Build instructions for a KBDFans Holy60-based custom keyboard

I built a keyboard I like the other day. You can build your own custom keyboard like this if you want to. It's more approachable than you might think!

Parts list:

  • KBDFans Holy 60 case. It comes with screws, standoffs, and a torx driver for its screws.
  • Silicone standoff covers, to prevent accidental shorts from the board touching the metal standoffs.
  • A PCB that can be mounted in this case. Any 60% PCB that can go into the KBDFans Tofu60 original flavor can go into the Holy 60, which is a wide range of boards. I chose the DZ60 RGB with the arrow keys, because I use the arrow keys a lot. Another popular choice is the [Wooting HE 60](https://wooting.io/
@ceejbot
ceejbot / crashlogger-output.txt
Created March 28, 2024 07:15
repeatable crash from papyrus
Skyrim SSE v1.6.640
CrashLoggerSSE v1-12-1-0 Dec 22 2023 02:20:56
Unhandled exception "EXCEPTION_ACCESS_VIOLATION" at 0x7FF6FBA1C3EC SkyrimSE.exe+0DBC3EC mov dword ptr [rax+0x20], 0x01
SYSTEM SPECS:
OS: Microsoft Windows 11 Home v10.0.22631
CPU: AuthenticAMD AMD Ryzen 7 7800X3D 8-Core Processor
GPU #1: Nvidia GA102 [GeForce RTX 3080 Ti]
GPU #2: AMD Raphael
@ceejbot
ceejbot / SoulsyHUD.log
Created February 3, 2024 20:43
soulsyhud logging sample
18:37:22 [INFO ] SoulsyHUD version 0.16.4 coming online.
18:37:22 [INFO ] Game version 1-6-640-0
18:37:22 [INFO ] Registering plugin for SKSE cosaves.
18:37:22 [INFO ] SoulsyHUD load successful.
18:37:24 [DEBUG] main.cpp:63: Registering with Trainwreck if it's found...
18:37:40 [INFO ] D3DInit hooked so we can give imgui something to render to.
18:37:40 [INFO ] Getting DXGI swapchain...
18:37:40 [INFO ] Reticulating splines...
18:37:40 [INFO ] Getting DXGI swapchain desc...
18:37:40 [INFO ] Initializing ImGui...
@ceejbot
ceejbot / crashlogger-output.txt
Created October 4, 2023 02:08
Thaumaturgy format string crash with Yes I'm Sure
Skyrim SSE v1.6.640
CrashLoggerSSE v1-10-0-0 Sep 5 2023 01:25:07
Unhandled exception "EXCEPTION_ACCESS_VIOLATION" at 0x7FF630A2D6AF
SYSTEM SPECS:
OS: Microsoft Windows 10 Home v10.0.19045
CPU: AuthenticAMD AMD Ryzen 7 3800X 8-Core Processor
GPU #1: Nvidia GA102 [GeForce RTX 3080 Ti]
GPU #2: Microsoft Basic Render Driver
@ceejbot
ceejbot / justfile
Last active August 14, 2023 23:47
some automation for the profiling steps
# If you don't know what this is, go to https://just.systems
set windows-shell := ["pwsh.exe", "-Command"]
modpath := "G:/VortexStaging/Community Shaders development/SKSE/Plugins/"
# How to get started profiling.
@help:
"First, add the following directories to your path env var:"
"C:\Program Files\Microsoft Visual Studio\2022\Community\Team Tools\Performance Tools\"
@ceejbot
ceejbot / BetterThirdPersonSelection.log
Created May 15, 2023 23:42
Skyrim AE BTPS crash logs
[info] BetterThirdPersonSelection v0.5.8
[info] BTPS: API is being requested, version 0
[info] BTPS: API request successful
[info] BTPS applying hooks...
[info] BTPS applying ActivateHook
[info] BTPS applying SelectionHook
[info] BTPS applying MainUpdateHook
[info] BTPS applying HorseBackHook
[info] BTPS finished applying hooks...
[info] BTPS: successfully registered SelectionWidgetMenu
@ceejbot
ceejbot / Crash_2022_11_30_0-37-54.txt
Created November 30, 2022 08:43
skyrim crash output
Unhandled native exception occurred at 0x7FF77C3ED789 (SkyrimSE.exe+A0D789) on thread 17540!
FrameworkName: NetScriptFramework
FrameworkVersion: 15
FrameworkArchitecture: x64
GameLibrary: SkyrimSE
GameLibraryVersion: 18
ApplicationName: SkyrimSE.exe
ApplicationVersion: 1.5.97.0
VersionInfo: Successfully loaded
@ceejbot
ceejbot / config
Last active September 1, 2021 17:47
fast notes on how to build and test rust lambdas in local dev on a mac
# this goes into your ~/.cargo/config file
[target.x86_64-unknown-linux-musl]
linker = "x86_64-linux-musl-gcc"
@ceejbot
ceejbot / interview_questions.md
Last active March 8, 2024 21:49
I have now LEAKED the questions I ask in interviews! Prep now and hack this test!

Interview outline

Questions variation 2

  1. intro (read script below)
  2. Tell me a story about the last time you taught someone something at work. what was the process like? what went well / what was challenging? (This is a warmup softball question. The candidate will be prepared for something like this, and will relax while answering it.)
  3. Tell me a story about the last thing someone taught you at work. (Looking for: ability to learn, learning strategies.)
  4. Substitute for #2 for more senior candidates: How do you deal with stress? (Looking for: any thoughtful approach at all.)
  5. What’s the hard part of [your job]? (Look for reasons why it's hard; what the candidate is doing to learn more about making it easy. Is it technical or do they have the awareness to talk about people things?)
  6. Tell me a story about a time modularity (or encapsulation) worked out for you. how do you pick where to encapsulate? what’s good about modularity? what’s difficult? (This is the single most important question fo