Skip to content

Instantly share code, notes, and snippets.

@ednisley
ednisley / PC4 Fitting Plates.scad
Created May 12, 2025 19:20
OpenSCAD source code: Adapter for PC4-M10 to Polymaker PolyDryer box lid
// PC4 Fitting Plates for PolyDryer
// Ed Nisley - KE4ZNU
// 2025-05-02
include <BOSL2/std.scad>
include <BOSL2/threading.scad>
Layout = "Plate"; // [Plate,Gasket,DrillGuide]
/* [Hidden] */
@metafloor
metafloor / zpl-quick-reference.md
Last active January 21, 2026 01:22
ZPL Quick Reference

ZPL Commands

Command Format Description
^A ^Afo,h,w,d:f.x Use Scalable/Bitmapped Font
^A@ ^A@o,h,w,d:f.x Use Font Name to Call Font
^B0 ^B0a,b,c,d,e,f,g Aztec Bar Code Parameters
^B1 ^B1o,e,h,f,g Code 11 Bar Code
^B2 ^B2o,h,f,g,e,j Interleaved 2 of 5 Bar Code
^B3 ^B3o,e,h,f,g Code 39 Bar Code
@rmrao
rmrao / .pymol_functions.py
Last active January 21, 2026 01:19
My pymol rc script
from pymol import preset, cmd
from glob import glob
from os.path import sep, basename
from pathlib import Path
def bns(sel: str = "bb."):
preset.ball_and_stick(selection=sel, mode=1)
package main
import (
"context"
"crypto/tls"
"crypto/x509"
"errors"
"fmt"
"math"
"time"
@odolbeau
odolbeau / hc-monitor
Last active January 21, 2026 01:16
Healtchecks.io bash decorator
#!/bin/bash
# Hosted on gist : https://gist.github.com/odolbeau/bd6d8eb7910d1289e2687682c8db9275
if [ $# -lt 1 ] || [ -z "$1" ] || [ -z "${UUID}" ]; then
echo "Usage: UUID=your-uuid $0 [command to run]"
echo "Decorates a command to notify healtchecks.io"
exit 1
fi
@sundowndev
sundowndev / GoogleDorking.md
Last active January 21, 2026 01:13
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@nielsvanvelzen
nielsvanvelzen / guide.md
Last active January 21, 2026 01:12
Jellyfin for Android TV debugging guide

Jellyfin for Android TV debugging guide

Install ADB

ADB (Android Debug Bridge) is a command-line tool that allows you to communicate with Android devices. It is bundled with Android Studio or available as standalone download.

Connect to an Android TV device with ADB

Enable developer mode on Android TV

@kconner
kconner / macOS Internals.md
Last active January 21, 2026 01:06
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@gbaman
gbaman / HowToOTG.md
Last active January 21, 2026 00:59
Simple guide for setting up OTG modes on the Raspberry Pi Zero

Raspberry Pi Zero OTG Mode

Simple guide for setting up OTG modes on the Raspberry Pi Zero - By Andrew Mulholland (gbaman).

The Raspberry Pi Zero (and model A and A+) support USB On The Go, given the processor is connected directly to the USB port, unlike on the B, B+ or Pi 2 B, which goes via a USB hub.
Because of this, if setup to, the Pi can act as a USB slave instead, providing virtual serial (a terminal), virtual ethernet, virtual mass storage device (pendrive) or even other virtual devices like HID, MIDI, or act as a virtual webcam!
It is important to note that, although the model A and A+ can support being a USB slave, they are missing the ID pin (is tied to ground internally) so are unable to dynamically switch between USB master/slave mode. As such, they default to USB master mode. There is no easy way to change this right now.
It is also important to note, that a USB to UART serial adapter is not needed for any of these guides, as may be documented elsewhere across the int

@mahyarmirrashed
mahyarmirrashed / civitai-downloader.py
Created January 21, 2026 00:54
CivitAI Downloader Script
import os
import sys
import re
import typer
import requests
from dotenv import load_dotenv
from tqdm import tqdm
from typing import Optional
load_dotenv()