Skip to content

Instantly share code, notes, and snippets.

@ipenywis
ipenywis / cursor-memory-bank-rules.md
Last active April 6, 2025 03:29
Cursor Memory Bank

Cursor's Memory Bank

I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.

Memory Bank Structure

The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:

flowchart TD
@Klerith
Klerith / docker-compose.yml
Last active April 6, 2025 03:26
PostgreSQL + PgAdmin
version: '3'
services:
myDB:
image: postgres:15.3
container_name: my-database
restart: always
ports:
- 5432:5432
environment:
@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active April 6, 2025 03:24
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
@maratori
maratori / .golangci.yml
Last active April 6, 2025 03:23
Golden config for golangci-lint
# This file is licensed under the terms of the MIT license https://opensource.org/license/mit
# Copyright (c) 2021-2025 Marat Reymers
## Golden config for golangci-lint v2.0.2
#
# This is the best config for golangci-lint based on my experience and opinion.
# It is very strict, but not extremely strict.
# Feel free to adapt it to suit your needs.
# If this config helps you, please consider keeping a link to this file (see the next comment).
@UXVirtual
UXVirtual / TreeReplacerS.cs
Last active April 6, 2025 03:23 — forked from st4rdog/TreeReplacerS.cs
Replaces trees on a terrain with prefab.
using UnityEngine;
using UnityEditor;
// Replaces Unity terrain trees with prefab GameObjects.
// Handles terrain offsets correctly.
public class TreeReplacerS : EditorWindow
{
[Tooltip("The terrain containing the trees to replace.")]
public Terrain _terrain;
@cemerson
cemerson / archive.org-scanned-book-downloader-bookmarklet.md
Last active April 6, 2025 03:19
Archive.org Scanned Book Downloader Bookmarklet

Archive.org Scanned Book Downloader Bookmarklet

A simple "1-click" javascript approach to downloading a scanned book from archive.org to read at your leisure on the device of your choosing w/out having to manually screenshot every pages of the book by hand. In short it's a glorified "Save Image As..." approach but consolidated down to "1 click". BTW there may be a much better option than this out there - I just built this as an autistic project to see if it would work.

Demo Video

Archive.org SBDL Demo

Obligatory Legal/Disclaimer:

By using this script you agree to delete all book files/images after your 1 hour or 14 days is up! I don't support using this script for any other use cases. After all, none of us have ever kept a library book past it's return date, right?

@michaellihs
michaellihs / tmux-cheat-sheet.md
Last active April 6, 2025 03:17
tmux Cheat Sheet
@DvdKhl
DvdKhl / BytesToIPAddress.sql
Last active April 6, 2025 03:10
SQL Server function to convert varbinary(16) IPv4/IPv6 addresses to its string (shortened) form
--Copyright (C) 2022 DvdKhl
--Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
--to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
--and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
--The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
--THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
--FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
--WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE