Skip to content

Instantly share code, notes, and snippets.

@5310
5310 / minimal.sh
Last active March 10, 2024 01:53
ComfyUI provisioning scripts #script
#!/bin/bash
NODES=(
"https://github.com/ltdrdata/ComfyUI-Manager"
)
CHECKPOINT_MODELS=(
# "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt"
# "https://huggingface.co/stabilityai/stable-diffusion-2-1/resolve/main/v2-1_768-ema-pruned.ckpt"
# "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors"
@5310
5310 / find-broken-symlinks.sh
Created September 4, 2023 08:56
Find all the broken symlinks #script
@5310
5310 / retarget-symlinks.sh
Created September 4, 2023 08:39
Retarget absolute local symlinks for old mountpoint into relative symlinks #script
@5310
5310 / 1.bqn
Last active December 25, 2022 15:12
Learning BQN with Project Euler
# Euler 1 expression
+´ ×⟜(∨´ 0 = 3‿5 | ⊢)¨ ↕100
# Euler 1 operator
_comb_ ← {𝕩 𝔽 𝕨 𝔾 𝕩}
3‿5 +´∘×_comb_(∨˝ (0 = |⌜)) ↕100
@5310
5310 / code.md
Last active October 21, 2021 14:33
Tabula serialization mocks
type worker
variables
x
number
const f(x): Math.floor(Math.random()*x)
@5310
5310 / setup-shared-audio.sh
Created February 21, 2021 15:53
Setup Pulseaudio modules to merge a mic and an application for input #script
# Enter your input and output device names here
source=bluez_source.98_09_CF_F3_12_0F.headset_head_unit
sink=bluez_sink.98_09_CF_F3_12_0F.headset_head_unit
# Module names
sharednull=shared-null-sink
sharedsink=shared-sink
sharedsource=shared-source
# Cleanup devices left over from prior runs
@5310
5310 / eslintrc.js
Last active February 16, 2020 06:31
ESLint config #dotfile
// NOTE: Because common sense is in short supply,
// and now that ESLint v6 can't resolve external configs to extend
// (but can be persuaded to load plugins; not configs),
// the following code is necessary for my setup.
// Credit: https://github.com/eslint/eslint/issues/11914#issuecomment-569108633
const Module = require('module')
const ModuleFindPath = Module._findPath
Module._findPath = (request, paths, isMain) => {
const r = ModuleFindPath(request, paths, isMain)
if (!r) {
@5310
5310 / s2check.user.js
Last active March 16, 2024 17:31
Faster PoGO Tools for IITC-CE #userscript
// ==UserScript==
// @id s2check@pogohwh
// @name Pogo Tools, PoGOHWH
// @category Layer
// @namespace https://gitlab.com/AlfonsoML/pogo-s2/
// @downloadURL https://gitlab.com/AlfonsoML/pogo-s2/raw/master/s2check.user.js
// @homepageURL https://gitlab.com/AlfonsoML/pogo-s2/
// @supportURL https://twitter.com/PogoCells
// @version 0.93
// @description Pokemon Go tools over IITC. News on https://twitter.com/PogoCells. This is a form made to run MUCH faster, kept at: https://gist.github.com/5310/c216c40cf6d34834c9cfaad0d820ae4d
@5310
5310 / iitc-plugin-hide-chat.js
Last active March 14, 2022 18:49
IITC Plugin Hide Chat #userscript
// ==UserScript==
// @id iitc-plugin-hide-chat
// @name IITC plugin: Hide Chat
// @category Tweaks
// @version 0.1.0
// @description Hides the chat.
// @include https://*.ingress.com/intel*
// @include http://*.ingress.com/intel*
// @match https://*.ingress.com/intel*
// @match http://*.ingress.com/intel*
@5310
5310 / _s2-cells-to-google-maps.readme.md
Last active October 3, 2025 12:26
Adding S2 Cells to Google My Maps #article #script