Skip to content

Instantly share code, notes, and snippets.

@bacalj
bacalj / artLogicImport.js
Last active August 11, 2026 07:43
import from artlogic to sanity - WIP
import {
getArtistIdMap,
getFeedItems,
createDocsFromItems
} from './artistUtils'
let artistIdsMap;
let feedItems;
let startingIndex;
let endingIndex;
@xiaoleichen
xiaoleichen / trakt_to_yamtrack.py
Last active August 11, 2026 07:37 — forked from mammuth/trakt_to_yamtrack.py
Convert a manual Trakt export zip into a Yamtrack (v0.25.3) import CSV — full history, rewatches, ratings, watchlist, TMDB metadata prefill
#!/usr/bin/env python3
"""Convert a manual Trakt export (.zip contents) into a Yamtrack import CSV.
Targets Yamtrack v0.25.3's CSV importer (integrations/imports/yamtrack.py).
Key importer facts this script relies on:
- Row order determines bulk-create order: movie, tv, season, episode.
- TV is unique per (user, item); Season per (related_tv, item); Episode and
Movie rows may repeat (that is how rewatches are stored).
- Episodes are linked to seasons via (media_id, season_number) after seasons
are created (update_episode_references), so season rows must precede
@jedisct1
jedisct1 / environment-variables.md
Created March 31, 2026 10:16
Claude Code environment variables full list

Claude Code Environment Variables

Scope and methodology

This file documents environment variables visible in the checked-in source of this repository snapshot. It is not guaranteed to be exhaustive for the full product, because many imported files are not present here.

For each variable, this document gives:

  • the visible purpose in code
  • the rough subsystem it belongs to
@angelo-swe
angelo-swe / repo-series.md
Last active August 11, 2026 07:13
The Repo List — every repo from my series, kept updated
@jerodg
jerodg / windows_and_office_kms_setup.adoc
Last active August 11, 2026 06:45
Activate Windows and Office Using KMS Server

Microsoft Windows and Office KMS Setup

@antruongnguyen
antruongnguyen / git-101-vi.md
Created July 16, 2024 06:22
Git 101 - Hướng dẫn sử dụng git bằng Tiếng Việt

Git 101 - Hướng dẫn sử dụng git bằng bằng dòng lệnh

Đây là bài viết dành cho người mới bắt đầu sừ dụng git, phù hợp cho học sinh, sinh viên, người mới ra trường, hoặc mới đi làm.

Yêu cầu:

  • Git đã được cài đặt trên máy.
  • Cửa sổ dòng lệnh (Terminal/CMD)

1. Git là gì?

Git là một hệ thống quản lý phiên bản phân tán (Distributed Version Control System - DVCS) được sử dụng để theo dõi sự thay đổi trong mã nguồn của phần mềm trong quá trình phát triển. Nó cho phép nhiều người làm việc trên cùng một dự án mà không gặp phải vấn đề xung đột mã nguồn.

@lltx
lltx / terminal-setup.md
Last active August 11, 2026 06:31
🚀 现代化终端配置指南 - Ghostty + Zoxide + Yazi + Oh-My-Zsh

🚀 现代化终端配置指南

Ghostty + Zoxide + Yazi + Oh-My-Zsh 完整配置

📦 工具列表

  • Ghostty - 现代化 GPU 加速终端模拟器
  • Zoxide - 智能目录跳转工具(cd 的智能替代)
  • Yazi - 快速终端文件管理器
  • Oh-My-Zsh - Zsh 配置框架
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active August 11, 2026 08:34
Complete Recent Discord Quest

Caution

As of April 7th 2026, Discord has expressed their intent to crack down on automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you most likely WILL get flagged by doing so.

Complete Recent Discord Quest

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.

# Load the contents of the receipt file
receipt_file = open('./receipt_data.bin', 'rb').read()
# Use asn1crypto's cms definitions to parse the PKCS#7 format
from asn1crypto.cms import ContentInfo
pkcs_container = ContentInfo.load(receipt_file)
# Extract the certificates, signature, and receipt_data
certificates = pkcs_container['content']['certificates']
signer_info = pkcs_container['content']['signer_infos'][0]