Skip to content

Instantly share code, notes, and snippets.

@un33k
un33k / gist:1161554
Created August 22, 2011 02:47
Reset spotlight on osx and Start indexing again
To reset the data cache on your Mac’s hard drive,
sudo mdutil -E /
To force Spotlight to immediately start re-indexing your hard drive (this might take a few hours and is probably best left to run overnight), enter this command:
sudo mdutil -i on /
@yulanggong
yulanggong / dark.theme
Created May 21, 2012 15:06
Dark Theme for Windows XP
[Theme]
DisplayName=@themeui.dll,-2016
; My Computer
[CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\DefaultIcon]
DefaultValue=%WinDir%explorer.exe,0
; My Documents
[CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\DefaultIcon]
DefaultValue=%WinDir%SYSTEM32\mydocs.dll,0
@ConnerWill
ConnerWill / ANSI-escape-sequences.md
Last active February 20, 2026 20:39
ANSI Escape Sequences cheatsheet

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@tg44
tg44 / README.md
Last active February 20, 2026 20:36
Cheap IP camera video converter

install nodejs 12

run with node app.js cameraRootDir

Almost works with Blitzwolf BW-SHC2 (no audio for me).

Not tested on windows, but probably changing the ffmpeg in the first two function-returns to something like ffmpeg.exe will make this work.

The script will recursively walk on every sudir, group the files ased on parent dir,

@olih
olih / jq-cheetsheet.md
Last active February 20, 2026 20:35
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@jeffreycentex
jeffreycentex / macros.mdf
Created April 5, 2019 04:38
FLDigi Macros File
//fldigi macro definition file extended
// This file defines the macro structure(s) for the digital modem program, fldigi
// It also serves as a basis for any macros that are written by the user
//
// The top line of this file should always be the first line in every macro
// definition file (.mdf) for the fldigi program to recognize it as such.
//
//
// Macro # 1
@0x9900
0x9900 / macros.mdf
Last active February 20, 2026 20:34
fldigi macros
//fldigi macro definition file extended
// This file defines the macro structure(s) for the digital modem program, fldigi
// It also serves as a basis for any macros that are written by the user
//
// The top line of this file should always be the first line in every macro
// definition file (.mdf) for the fldigi program to recognize it as such.
//
//
// Macro # 1
#!/usr/bin/env bash
INPUT_FILE="${1:-bookmarks.html}"
OUTPUT_FILE="personal.txt"
if [[ ! -f "$INPUT_FILE" ]]; then
echo "Error: $INPUT_FILE not found"
exit 1
fi
@karpathy
karpathy / microgpt.py
Last active February 20, 2026 20:32
microgpt
"""
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
@jcooper212
jcooper212 / PRD.md
Created February 20, 2026 20:30 — forked from mberman84/PRD.md
OpenClaw PRD

PRD.md - Product Requirements & Feature Inventory

Everything built on top of the base OpenClaw platform. Canonical reference for what exists, where it lives, and how it works. Operational use cases and workflow playbooks live in docs/USE-CASES-WORKFLOWS.md.


Table of Contents

  1. Operational Use Cases & Workflows