Skip to content

Instantly share code, notes, and snippets.

@badlogic
badlogic / 01-update-docs.md
Last active June 15, 2025 03:50
Yakety Documentation (Ordered) - LLM-optimized docs with concrete file references

Update Documentation

You will generate LLM-optimized documentation with concrete file references and flexible formatting.

Your Task

Create documentation that allows humans and LLMs to:

  • Understand project purpose - what the project does and why
  • Get architecture overview - how the system is organized
  • Build on all platforms - build instructions with file references
@samhenrigold
samhenrigold / _WWDC25 AI-ML Group Lab.md
Last active June 15, 2025 03:50
WWDC25 Machine Learning and AI Frameworks group lab

(Summary generated by ChatGPT based on the automatic transcription. Transcript is attached to this Gist)

Panelists:

  • Host: Shashank

  • Panelists: Michael, Erik, Richard, Ronan


@CodingKoopa
CodingKoopa / apt.md
Last active June 15, 2025 03:49
APT Repositories Explained

Intro

To install and update packages on Debian, Ubuntu, or most derived distributions, you use APT, the Advanced packaging tool, to download the packages and their dependencies, which uses dpkg to install them.

These notes go into the downloading part, as I think it's easy to get overwhelmed by how the repositories work. I will eventually turn this into a page on my website.

Repository

A repository is where the packages come from. It provides binary packages for an arbitrary selection of architectures as well as source packages. Repositories are APT's data source. [https://wiki.debian.org/DebianRepository]

@omar2205
omar2205 / PgDriver.ts
Last active June 15, 2025 03:43
Deno + Kysely + Postgres
import { Client } from 'postgres'
import { CompiledQuery, DatabaseConnection, Driver, QueryResult, TransactionSettings } from 'kysely'
type QueryArguments = unknown[] | Record<string, unknown>
export class PostgresDriver implements Driver {
readonly #connectionMutex = new ConnectionMutex()

Ghidra BSim Basics Tutorial

This is a basic tutorial for using BSim in Ghidra. The main thing it will go over is how to compare matches of functions across binaries and how to navigate the BSim interface.

BEFORE CONTINUING

Your Ghidra version MUST be on 11 or higher to use BSim features.

Enabling BSim

To enable BSim, go into CodeBrowser. Then, click the File tab, then click the Configure button. Then, click the checkbox on the BSim tool. This enables the BSim tab in CodeBrowser.

Creating a BSim Database

@eusonlito
eusonlito / 01-README.md
Last active June 15, 2025 03:32
SQLite optimization for Laravel

The SQLite optimizations must be carried out at two different times: once in a unique and permanent way for the database and another time for each connection that is made. Below are the configurations that should be made in each case.

Unique and Permanent Configurations

These configurations are set only once and affect the database persistently, meaning they do not need to be reconfigured each time a connection is established:

PRAGMA journal_mode = WAL;

Sets the database journal mode to "WAL" (Write-Ahead Logging), which improves performance in concurrent operations.

@ObserverOfTime
ObserverOfTime / BDLinux.md
Last active June 15, 2025 03:31
Install BetterDiscord on Linux

Install BetterDiscord on Linux

This Gist contains simple instructions on how to install, update, and uninstall BetterDiscord on Linux.

For more thorough documentation, take a look at betterdiscordctl's README.

Do NOT submit issues here as I don't check the comments. You should submit them here instead.

@heywoodlh
heywoodlh / setup-clevis.sh
Last active June 15, 2025 03:30
Ubuntu setup for Clevis
# credit: https://askubuntu.com/a/1475182
# invoke with:
# curl -L https://gist.githubusercontent.com/heywoodlh/b55eb33e248db2b8a7625c1fddc6b8d3/raw/ce517a862ae4b4dd0c7a60912df22c5bcb10d736/setup-clevis.sh -o /tmp/setup-clevis.sh
# sudo bash /tmp/setup-clevis.sh /dev/sda3
disk="$1"
[[ ! -n "${disk}" ]] && echo "Usage: $0 /dev/sda3" && exit 1
[[ -n "${disk}" ]] && [[ ! -e "${disk}" ]] && echo "Disk ${disk} does not exist. Exiting." && exit 1
#install needed packages