Skip to content

Instantly share code, notes, and snippets.

@hjbotha
hjbotha / free_ports.sh
Last active March 12, 2026 10:09
Free ports 80 and 443 on Synology NAS
#! /bin/bash
# NEWLY ADDED BACKUP FUNCTIONALITY IS NOT FULLY TESTED YET, USE WITH CARE, ESPECIALLY DELETION
# Developed for DSM 6 - 7.0.1. Not tested on other versions.
# Steps to install
# Save this script in one of your shares
# Edit it according to your requirements
# Backup /usr/syno/share/nginx/ as follows:
# # cd /usr/syno/share/
# # tar cvf ~/nginx.tar nginx
@LankyMoose
LankyMoose / store.ts
Last active March 12, 2026 10:01
Zustand at home
import { useSyncExternalStore } from "react";
type Subscriber<T> = (() => void) | SliceSubscription<T, unknown>;
interface SliceSubscription<T, U> {
selector: (state: T) => U;
updaters: Set<() => void>;
selection: U;
}
@laltin
laltin / turkish-words.js
Created October 14, 2016 22:41
List of some Turkish words
module.exports = [
"ab",
"aba",
"aba güreşi",
"abacı",
"abacılık",
"abadi",
"abajur",
"abajurcu",
"abajurculuk",
@tannisroot
tannisroot / .env
Last active March 12, 2026 09:53
# Alternatively, you can also try 'qwen3-asr-1.7b',
# but I've found the transcription quality from 0.6b to be excellent
STT_MODEL='qwen3-asr-0.6b'
@velvet-shark
velvet-shark / openclaw-50-day-prompts.md
Last active March 12, 2026 09:53
OpenClaw after 50 days: all prompts for 20 real workflows (companion to YouTube video)

OpenClaw after 50 days: all prompts

Companion prompts for the video: OpenClaw after 50 days: 20 real workflows (honest review)

These are the actual prompts I use for each use case shown in the video. Copy-paste them into your agent and adjust for your setup. Most will work as-is or the agent will ask you clarifying questions.

Each prompt describes the intent clearly enough that the agent can figure out the implementation details. You don't need to hand-hold it through every step.

My setup: OpenClaw running on a VPS, Discord as primary interface (separate channels per workflow), Obsidian for notes (markdown-first), Coolify for self-hosted services.

@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active March 12, 2026 09:51
Conventional Commits Cheatsheet
#!/usr/bin/env python3
"""
smb_ntlm_capture.py — Rogue SMB server for NTLMv1/v2 challenge-response capture.
Features:
- SMB1 (CIFS) and SMB2 negotiation
- NTLMv1 and NTLMv2 authentication capture
- Static challenge injection (8-byte, hex or raw)
- ESS (Extended Session Security) downgrade support
- Template mode: reach a real server to clone its NEGOTIATE response
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp