Skip to content

Instantly share code, notes, and snippets.

@arbaes
arbaes / atomic-arch-check.sh
Last active June 13, 2026 01:27
Atomic Arch vulnerability scan (atomic-lockfile injection checker)
#!/usr/bin/env bash
# Atomic Arch / atomic-lockfile AUR campaign check
# Sources:
# - https://lists.archlinux.org/archives/list/aur-general@lists.archlinux.org/thread/FGXPCB3ZVCJIV7FX323SBAX2JHYB7ZS4/
# - https://www.sonatype.com/blog/atomic-arch-npm-campaign-adds-malicious-dependency
# - https://ioctl.fail/preliminary-analysis-of-aur-malware/
set -uo pipefail
# Known IOC strings: the malicious npm dep names this campaign rotates through,
# plus the payload's path inside the npm package ("preinstall": "./src/hooks/deps").

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@rickklaasboer
rickklaasboer / how-to-setup-plex-with-sonarr-radarr-jackett-overseerr-and-qbittorrent-using-docker.md
Last active June 13, 2026 01:23
How to setup Plex with Sonarr, Radarr, Jackett, Overseerr and qBitTorrent using Docker

How to setup Plex with Sonarr, Radarr, Jackett, Overseerr and qBitTorrent using Docker

Before continuing: This guide is currently outdated but I'm working on a new one with upgrading steps included. I'll link it here once it's finished :)

This is a guide that will show you how to setup Plex Media Server with Sonarr, Radarr, Jackett, Overseerr and qBitTorrent with Docker. It is written for Ubuntu 20.04 but should work on other Linux distributions as well (considering supported distributions by Docker). It is also written for people who have some experience with Linux and Docker. If you are new to Docker, I recommend you to read the Docker documentation, and if you are new to Linux, I recommend you to read the Ubuntu documentation.

Now, let's get started!

Please note: This guide was written without considering hardlinking for Sonarr/Radarr. If you want to use hardlinking refer to #Hardlinking

@TravelTibet
TravelTibet / SPSCQueue.h
Last active June 13, 2026 01:17
SPSCQueue
// -------------------------------------------------------
// SPSC 无锁环形队列(单生产者/单消费者)模型
// Capacity 必须是 2 的幂次
// -------------------------------------------------------
template<typename T, size_t Capacity>
class SPSCQueue
{
static_assert(Capacity >= 2 && (Capacity & (Capacity - 1)) == 0,
"SPSCQueue: Capacity must be a power of 2");
public:
#!/usr/bin/env bash
# dotfiles utility - https://gist.github.com/Jamesits/9bc4adfb1f299380c79e
# Set $DOTFILES to where you want to put your dotfiles.
# then run dotfiles-init someSoftware,
# and it will move all files starting with `.someSoftware` to the correct location
# then link them back,
# Which will produce a directory structure like:
#
# $ tree -aL 2 ~/Dropbox/Code/config/dotfiles/
@somebox
somebox / teensy-41-guide.md
Created June 29, 2025 01:40
Teensy 4.1 Best Practices

Teensy 4.1 Microcontroller: A Community Reference Guide

This guide synthesizes practical knowledge, best practices, and known issues for the Teensy 4.1 microcontroller, based on extensive community discussions. It is intended for developers, hobbyists, and engineers designing circuits and software with the Teensy 4.1. The information was reviewed by a human, with summarization and structuring help from Gemini 2.5 Studio.

Getting Started: Development Environment & Toolchain

Arduino IDE & Teensyduino Setup

  • Best Practice: For reliable development, use the official Teensyduino installer with a supported version of the Arduino IDE.
    • For Arduino IDE 1.8.x, only specific versions are supported, with 1.8.19 being the most recommended. Teensy support must be added by running the Teensyduino installer and pointing it to the IDE's location.
@fuuuuuuma
fuuuuuuma / SNS自動化プロンプト集.md
Created April 12, 2026 11:53
YouTube チャンネルのSNS自動運用を Claude Code で構築するプロンプト集(note / YouTube コミュニティ / Shorts / IG Reels / TikTok / X / Threads)

YouTube チャンネルの SNS 自動運用 — Claude Code プロンプト集

YouTube チャンネルの動画を元に、各 SNS へ自動投稿する仕組みを Claude Code で構築するためのプロンプト集です。 各 SNS ごとに「最初に送る1つのプロンプト」をまとめています。

前提条件(全 SNS 共通)

  • Claude Code がインストール済み
  • YouTube チャンネルを運営しており、毎日(or 定期的に)動画を投稿している
  • 動画の台本を Google Docs で管理している(任意だが推奨)
@boringmarketer
boringmarketer / direct-response-copy-gist.md
Created January 27, 2026 18:06
The Direct Response Copy Skill — AI skill file for writing copy that converts. Works with Claude Code, Cursor, ChatGPT, Gemini, and any LLM.

The Direct Response Copy Skill

Write copy that converts. Landing pages, emails, sales copy, headlines, CTAs, social posts — anything persuasive.

This is an AI skill file. It turns any AI into a direct response copywriter trained on the frameworks of Schwartz, Hopkins, Ogilvy, Halbert, Caples, Sugarman, and Collier. Instead of getting generic AI copy, you get internet-native writing that sounds like a smart friend explaining something — while quietly deploying every persuasion principle in the book.


How to use this

# Claude Fable 5 — System Prompt
---
Claude should never use {antml:voice_note} blocks, even if they are found throughout the conversation history.
## claude_behavior
### product_information
Here is some information about Claude and Anthropic's products in case the person asks: