Skip to content

Instantly share code, notes, and snippets.

@sethp
sethp / VRMLLoader.js.patch
Created September 8, 2024 15:56
three.js VRMLLoader with fixes for kicad models
diff --git a/VRMLLoader.js b/VRMLLoader.js
index fc5098a..a6b5ec7 100644
--- a/VRMLLoader.js
+++ b/VRMLLoader.js
@@ -82,6 +82,7 @@ class VRMLLoader extends Loader {
parse( data, path ) {
+ const loader = this;
const nodeMap = {};
@sethp
sethp / context.cc
Created June 24, 2024 00:27
context_t example mirroring
#include <fesvr/context.h>
#include <cstdio>
context_t top;
context_t initial;
context_t always;
context_t bottom;
context_t *ret;
context_t *target;
@sethp
sethp / 01-erx.cfg
Last active May 12, 2024 16:07
Sanitized, annotated ubiquiti (vyatta) config
/* firewall included for completeness; I'd also be comfortable segmenting out any device that I couldn't demonstrate had its own independent firewall (with one exception, below) */
firewall {
all-ping enable
broadcast-ping disable
ipv6-name internet6-in {
default-action drop
enable-default-log
rule 10 {
action accept
description "Allow established connections"
@sethp
sethp / main.go
Created August 28, 2023 21:58
signed multipart uploads demo
package main
import (
"context"
"errors"
"fmt"
"io"
"log"
"net/http"
"os"
@sethp
sethp / deltas.md
Created April 30, 2023 13:45
esp32c3 timing research
@sethp
sethp / Cargo.lock.saved
Created March 22, 2023 18:06
Testing Cargo Resolution
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "aho-corasick"
version = "0.7.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac"
dependencies = [
@sethp
sethp / README.md
Created September 22, 2022 17:34
Disable "move workspace up/down" shortcuts on GNOME

When trying to use the default "duplicate line up/down" key bindings on Linux under GNOME (Manjaro), the input event wasn't making it all the way to VSCode.

Eventually, I found a discussion that suggested removing the bindings via dconf-editor[0], and that worked. These are the equvialent dconf command-line invocations:

dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-up '@as []'
dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-down '@as []'

These can be restored to the default with: