Skip to content

Instantly share code, notes, and snippets.

@cugu
cugu / README.md
Last active December 2, 2026 12:57
Webhooks for PocketBase

Webhooks for PocketBase

A simple webhook plugin for PocketBase.

Adds a new collection "webhooks" to the admin interface, to manage webhooks.

Example

The webhook record in the following example send create, update, and delete events in the tickets collection to http://localhost:8080/webhook.

@alcatrazEscapee
alcatrazEscapee / Why Are Rivers So Complicated.md
Last active December 2, 2026 12:55
Why Are Rivers So Complicated?

Update

You can now read this document / article, at https://alcatrazescapee.com/rivers/. It will be updated further there. The original content is still here, below


Why Are Rivers So Complicated?

Let's narrow that down a bit. This document will try to explain some of the difficulties, limitations, and possible ways to generate rivers in Minecraft. There have been many papers, articles, and other medium which have generated realistic rivers to great success. So what makes Minecraft so much more difficult, or what makes these other methodologies so difficult? And what methods have found success?

@Kartones
Kartones / postgres-cheatsheet.md
Last active December 2, 2026 12:53
PostgreSQL command line cheatsheet

PSQL Cheatsheet

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@phongnhudang92
phongnhudang92 / 1-README.md
Last active December 2, 2026 12:52
Khung AGENTS.md + skill + agent cho Claude Code (mẫu tiếng Việt)

Khung AGENTS.md + skill + agent cho Claude Code

Bộ khung mình dùng để giao việc cho Claude Code như giao cho một đội: một file luật chung, mỗi quy trình lặp lại là một skill, và một agent chỉ đọc để soát việc. Đã bỏ hết chi tiết riêng của dự án, thay bằng chỗ <...> để bạn điền.

Đặt file vào repo

Gist không có thư mục nên tên file có số thứ tự. Khi chép về thì đặt lại như sau:

File trong gist Đặt vào repo
2-AGENTS.md AGENTS.md (gốc repo)
@roachhd
roachhd / README.md
Last active December 2, 2026 12:50
HTaccess cheatsheet

htaccess Cheatsheet

Here is a simple cheatsheet for the .htaccess file:

Enable Directory Browsing

Options +Indexes
## block a few types of files from showing
IndexIgnore *.wmv *.mp4 *.avi
@tonusoo
tonusoo / irrd.yaml
Last active December 2, 2026 12:50
Local Internet Routing Registry (IRR) server setup for route filtering || tested on IRRd version 4.5.3 || NANOG mailing list thread: https://lists.nanog.org/archives/list/nanog@lists.nanog.org/thread/QYURU4X3Y5H3F7EAX3EEGEX4YOTOVZ63/
irrd:
# For performance reasons, use an Unix domain socket
# for communicating with both the PostgreSQL (socket
# is /run/postgresql/.s.PGSQL.5432) and Redis.
# For PostgreSQL only the peer authentication is
# allowed.
database_url: 'postgresql:///irrd'
redis_url: 'unix:///run/redis/redis-server.sock'
# In Filesystem Hierarchy Standard 3.0, /var/run
@miketartar
miketartar / ColdTurkeyBlockerActivator.py
Created September 26, 2020 04:21
Cold Turkey Blocker Activator
import json
import sqlite3
import os
DB_PATH = "C:/ProgramData/Cold Turkey/data-app.db"
def activate():
@juanarbol
juanarbol / chmodCheatSheet.md
Last active December 2, 2026 12:47
Chmod cheat sheet

Chmod codes cheat sheet

How to use chmod codes in UNIX:

  1. There are three types of permissions in files and folders in unix
    1. Read (r)
    2. Write (w)
    3. Execute (x)
  2. And, there is a classification of users called UGO (explained bellow):
  3. U ~> User (usually, you)
@Hellisotherpeople
Hellisotherpeople / we_wish_you_were_here.md
Last active December 2, 2026 12:44
Philipp Emanuel Weidmann (p-e-w): Our Era's Aaron Swartz

Philipp Emanuel Weidmann (p-e-w): Our Era's Aaron Swartz

A Eulogy

I was Philipp's acquaintance (I wish it were properly a friend) and coauthor on our work around XTC (eXclude Top Choices) and DRY (Don't Repeat Yourself) sampling. Most people in the open source AI world know him as p-e-w, or PeW. He was the mathematician and engineer who built Heretic after already giving the community DRY and XTC. By now you have probably seen the news out of Bhopal. Philipp Emanuel Weidmann was found dead inside a locked room on Sunday night at age 41, a day after he archived Heretic and [po

@mcwehner
mcwehner / lenovo_chromebook-linux_install.md
Created May 4, 2022 03:28
Linux installation on Lenovo Ideabook Duet (Chromebook)

The following steps are specific to the Lenovo Ideabook Duet. Due to the nature of the device having a detachable keyboard, these steps differ from other Chromebooks.

The goal of these steps is complete replacement of ChromeOS with a Linux distro of my choosing. This is not the same as the "Linux mode" or whatever it's called.

Sources:

  1. Power off the device.
  2. Hold down both volume buttons and the power button for about five seconds, then release.