Skip to content

Instantly share code, notes, and snippets.

@samuelcolvin
samuelcolvin / logfire_docs.json
Created October 24, 2024 12:33
Logfire docs JSON
[
{
"id": 0,
"parent": null,
"path": "roadmap.md",
"level": 1,
"title": "Roadmap",
"content": "Here is the roadmap for **Pydantic Logfire**. This is a living document, and it will be updated as we progress.\n\nIf you have any questions, or a feature request, **please join our [Slack][slack]**."
},
{
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 20, 2025 02:52
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 Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@badmotorfinger
badmotorfinger / dupfinder.ps1
Last active December 20, 2025 02:48
Use ReSharper command line tool dupFinder to produce a report of duplicated C# code
$reportFileName = 'dupfinder.html'
$dupFindLocation = 'C:\dev\tools\ReSharperCliTools\dupfinder.exe'
if (-not (Test-Path $dupFindLocation)) {
Write-Host "dupfinder.exe not found in path $dupFindLocation"
Write-Host "Download tools from https://www.jetbrains.com/help/resharper/2017.1/ReSharper_Command_Line_Tools.html"
exit
}
$xsl = '<?xml version="1.0" encoding="utf-8"?>
@joelklabo
joelklabo / ios-claude-setup-prompt.md
Created August 15, 2025 19:26
iOS Project Claude Code Setup Prompt - Complete setup instructions for Claude Code with XcodeBuildMCP

Complete iOS Project Claude Code Setup - Master Prompt

IMPORTANT: This comprehensive setup will transform any iOS project into a fully automated, context-aware, self-maintaining Claude Code environment. This prompt is designed specifically for Claude Code (claude.ai/code) users.


PHASE 0: Prerequisites & Environment Verification

0.1 Check Required Tools

Before starting, verify these tools are installed:

@c0m4r
c0m4r / radxa_rock5c_lite.md
Last active December 20, 2025 02:47
Radxa ROCK 5C Lite - all you need to know in one place
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active December 20, 2025 02:45
Conventional Commits Cheatsheet
@lotem
lotem / default.custom.yaml
Created July 9, 2012 12:23
自動識別西文及數字組成的用戶名
# default.custom.yaml
# 全局範圍識別輸入串爲 rime + 任意數字序列,以及形如 rimeime-1.2.3 的常用西文短語
# 也可將本組 patch 寫入 <輸入方案ID>.custom.yaml 使這組規則僅在一款輸入方案中有效
#
# 第一例,輸入 rime 之後,再輸入任意一個數字,則立即識別爲西文輸入
# 再加上 default.yaml 原有的 email 規則,識別包含 @ 字符的郵箱,於是可以一氣呵成 [email protected]
# 第二例,輸入到 rimeime 時,立即識別爲西文輸入,並可跟隨任意位數字及指定的符號
patch:
recognizer/patterns/rime123: "^rime[0-9]+$"
@gnehs
gnehs / NTUT-Assessment-Autofill.user.js
Last active December 20, 2025 02:41
北科網路教學評量自動填寫小精靈
// ==UserScript==
// @name 北科網路教學評量自動填寫小精靈
// @namespace https://gnehs.net/
// @version 0.3
// @downloadURL https://gist.github.com/gnehs/1728a52ff8ec1f4831d5749d935717c0/raw/NTUT-Assessment-Autofill.user.js
// @description 幫你自動填寫北科教學評量系統
// @author gnehs
// @match https://isms-nagios.ntut.edu.tw/tgrade/PortalTGrade.jsp
// @require https://cdn.jsdelivr.net/npm/sweetalert2@11
// @grant none
@rapier1
rapier1 / compare.txt
Created December 16, 2025 20:23
OpenSSH vs HPN-SSH Performance Comparison
The following image shows throughput rates of OpenSSH (the blue line) versus HPN-SSH. HPN-SSH
shows three different options. AES-GCM is the fastest cipher available. None is with encryption disabled
but still using the MAC cipher. NoneMac disables both ciphers. None and NoneMac are used here to
demonstrate the impact of ciphers on throughput.
The Y axis is throughput in Mpbs (0 to 8,000) and the X axis is the RTT of the path.
This graphs was generated by running multiple 40 GB transfers between two 10Gbps connected hosts
back to back. We used netem to artificially inject delay into this path to simulate different
RTTs. The median value of each set of runs was used to compute the values presented here.