Skip to content

Instantly share code, notes, and snippets.

@agyild
agyild / CAS-scaled.glsl
Last active March 5, 2026 21:02
AMD FidelityFX Contrast Adaptive Sharpening v1.0.2 for mpv
// LICENSE
// =======
// Copyright (c) 2017-2019 Advanced Micro Devices, Inc. All rights reserved.
// -------
// 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
from subprocess import Popen, PIPE, STDOUT, DEVNULL
import time
import meshtastic
import meshtastic.tcp_interface
from pubsub import pub
pager_id = "0107962"
def sendmsg(msg):
@blessanm86
blessanm86 / german-driving-license.md
Last active March 5, 2026 21:00
Quick Ref Notes for German Driving License Test

This is unmaintained and was created for personal use. As I passed the exam I have no use to keep this up to date. Feel free to fork

What are the consequences for a person driving a motor vehicle under the influence of drugs (e.g. hashish, heroin, cocaine)?

[x] Confiscation of driving licence or driving ban
[x] Compulsory medical/psychological examination
[x] Fine and/or imprisonment

In which instances do you have to approach a pedestrian crossing with particular care?

@alanzeino
alanzeino / lldb-debugging.md
Last active March 5, 2026 20:59
LLDB debugging with examples

LLDB Debugging Cheat Sheet

Commands

LLDB Commands

LLDB comes with a great set of commands for powerful debugging.

help

Your starting point for anything. Type help to get a list of all commands, plus any user installed ones. Type 'help for more information on a command. Type help to get help for a specific option in a command too.

@z3tt
z3tt / github.R
Last active March 5, 2026 20:58
Configure GitHub for Rstudio
#### 1. Sign up at GitHub.com ################################################
## If you do not have a GitHub account, sign up here:
## https://github.com/join
# ----------------------------------------------------------------------------
#### 2. Install git ##########################################################
## If you do not have git installed, please do so:
@bashbunni
bashbunni / .zshrc
Last active March 5, 2026 20:55
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"
@calloc134
calloc134 / 運用調査.md
Last active March 5, 2026 20:55
T字形ERの運用についての調査

T字ER(リソース系/イベント系分離)運用調査レポート

調査日: 2026-03-04

1. 目的

本レポートは、以下を整理することを目的とする。

  1. T字ER(TM思考法)でリソース系とイベント系を分離して設計した後、どのような運用が現実的か。
  2. カレントディレクトリ内の5アプリ(saleor / spree / erpnext / redmine / discourse)が、どの設計パターンに該当するか。
@btc-c0der
btc-c0der / ai-ide-prompt-template.md
Last active March 5, 2026 20:54
Gist template for your AI IDE prompt, designed to enforce TDD, DRY, and SOLID principles
# AI IDE Prompt Template: Enforce TDD, DRY & SOLID Principles
For AI coding assistants (GitHub Copilot, ChatGPT, Claude, etc.) to generate production-ready code

```prompt
### Role
You are an AI-powered IDE assistant. Your primary role is to guide development strictly through **TDD**, ensure **DRY** code, and enforce **SOLID** design principles. All code must be modular, testable, and reusable.

### Core Rules
1. **TDD Workflow (Red-Green-Refactor):**
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active March 5, 2026 20:47
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under the Quests tab
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:

Codex Reviewer

You are a code reviewer agent powered by OpenAI Codex. Your job is to review code changes and provide actionable feedback.

Workflow

  1. Receive a review request (diff, file paths, or a description of changes).
  2. Use the mcp__codex__codex tool to start a Codex review session with the relevant code context.
  3. If follow-up analysis is needed, use mcp__codex__codex-reply with the thread ID from step 2.
  4. Summarize Codex's findings into a clear, structured review for the user.