Skip to content

Instantly share code, notes, and snippets.

@jclosure
jclosure / prompts_for_learning.md
Last active February 17, 2025 05:02
Prompts for learning

Prompts for learning

Act as a socratic tutor and helm me understand the concept of momentum in physics.  
Ask me questions to guide my understanding.
Give me a multilevel explanation of momentum. First at the level of a child, then a 
@jclosure
jclosure / filament on MacOS.md
Last active January 21, 2025 18:24
Building and running filament samples in MacOS

Building filament on MacOS

Prereqs

brew install cmake ninja pkg-config git

Build

With Unix Make:

@jclosure
jclosure / settings.json
Last active January 7, 2025 06:42
On MacOS in VSCode terminal, make M-delete delete the word to the left of cursor
// Place your key bindings in this file to override the defaults
[
{
"key": "alt+backspace",
"command": "workbench.action.terminal.sendSequence",
"args": { "text": "\u001b\u007f" }, // delete word left to first non-word character
// = escape+delete
"when": "terminalFocus && isMac"
}
]
@jclosure
jclosure / .bashrc
Created December 20, 2024 18:18
Switch to zsh shell when user acct is in ldap and chsh doesn't work.
# normal .bashrc content here...
# CUSTOMIZATIONS
# Switch to ZSH shell
if test -t 1; then
exec zsh
fi
@jclosure
jclosure / Development.json
Created December 19, 2024 03:46
Ergonomic Iterm preferences. Designed to comfortably support Emacs and Oh-my-zsh.
{
"Badge Text" : "\\(user.tag)",
"ASCII Ligatures" : true,
"Working Directory" : "\/Users\/jclosure",
"Prompt Before Closing 2" : false,
"Selected Text Color" : {
"Green Component" : 0,
"Red Component" : 0,
"Blue Component" : 0
},
@jclosure
jclosure / cleanup_boot_partition.md
Created September 28, 2024 16:13
Clean out /boot partition - kernel sources, etc.

get the current kernel

uname -a

list everything

dpkg --list | egrep -i --color 'linux-image|linux-headers|linux-modules' | awk '{ print $2 }'
@jclosure
jclosure / irs-get-human.md
Created April 2, 2024 06:29 — forked from getaaron/irs-get-human.md
Get a person at the IRS
  • Call 1-800-829-1040
  • Press 1 for English (or other language as desired)
  • Press 2 for personal tax
  • Press 1 for form / tax history
  • Press 3 for other
  • Press 2 for other
  • Ignore 2 SSN prompts till you get secret other menu
  • Press 2 for personal tax
  • Press 3 for other
  • Wait for agent!
@jclosure
jclosure / file_client.js
Created January 25, 2024 19:07
Just a simple ES6 uploader/downloader for S3 objects
var ACCESS_KEY_ID = "mykey_id";
var SECRET_ACCESS_KEY = "mykey_secret";
var REGION = 'us-east-1';
var ENDPOINT = 'http://127.0.0.1:9000';
import { S3 } from '@aws-sdk/client-s3';
import * as fs from 'fs';
class FileClient {
constructor(bucket) {
@jclosure
jclosure / curl_object_downloader.sh
Created January 25, 2024 19:04
Download S3 objects with only curl
#!/bin/bash
# Example:
# for minio: in k9s, forward ports 9000 and 9001 to localhost
# ./curl_object_downloader.sh localhost:9000 mykey_id mykey_secret \
# mybucket mypath/myobj.bin ./myobj.bin
# User Minio Vars
URL=$1
USERNAME=$2
@jclosure
jclosure / gist:1dd4c94b4a6ce0738bee8b7ffc6194ee
Last active August 11, 2023 14:06
OBJ to GLTF quick conversion
# install converter
npm install -g obj2gltf
# convert .obj to .gltf
obj2gltf -i mesh.obj --separate
# install web gltf viewer
git clone https://github.com/donmccurdy/three-gltf-viewer.git
cd three-gltf-viewer
npm install