Skip to content

Instantly share code, notes, and snippets.

@eooce
eooce / auto-add-ssl-workers.js
Last active December 14, 2025 09:25
auto-add-ssl-workers
export default {
async fetch(request, env, ctx) {
const url = new URL(request.url);
// 处理 API 请求:支持 POST (/api/add-ssl) 和 GET (/?...)
if (
(url.pathname === '/api/add-ssl' && request.method === 'POST') ||
(url.pathname === '/' && request.method === 'GET' && url.searchParams.has('zoneId'))
) {
return handleApiRequest(request, url.searchParams);
@roachhd
roachhd / README.md
Last active December 14, 2025 09:04
Teach Kids Programming

Teach kids programming 🆒

2 min read

![][4]

A collection of resources

I've been gathering the best resources to teach children & teens programming — books, environments, apps, courseware and games.

@kevincarpdev
kevincarpdev / Volume Profile Price by Volume - Fixed Range.pine
Created April 3, 2023 14:36
Volume Profile Price by Volume - Fixed Range
//@version=5
// ══════════════════════════════════════════════════════════════════════════════════════════════════ //
//# * ══════════════════════════════════════════════════════════════════════════════════════════════
//# *
//# * Study : Volume Profile / Price by Volume - Fixed Ragne
//# * Author : © dgtrd
//# *
//# * Revision History
//# * Release : Feb 23, 2022
//# * Update : Feb 27, 2022 : added volume indicator (histogram)

The Unofficial 37signals/DHH Rails Style Guide

About This Document

This style guide was generated by Claude Code through deep analysis of the Fizzy codebase - 37signals' open-source project management tool.

Why Fizzy matters: While 37signals has long advocated for "vanilla Rails" and opinionated software design, their production codebases (Basecamp, HEY, etc.) have historically been closed source. Fizzy changes that. For the first time, developers can study a real 37signals/DHH-style Rails application - not just blog posts and conference talks, but actual production code with all its patterns, trade-offs, and deliberate omissions.

How this was created: Claude Code analyzed the entire codebase - routes, controllers, models, concerns, views, JavaScript, CSS, tests, and configuration. The goal was to extract not just what patterns are used, but why - inferring philosophy from implementation choices.

{ attr
}:
# Scaffold to build just one package with modified stdenv scripts.
#
# Dependencies come unmodified from <nixpkgs>, including the stdenv's
# toolchain. This is useful for (a) iterating quickly on changes to
# stdenv scripts (like setup.sh), and (b) more easily comparing the
# build log against a baseline, by keeping inputs' paths the same so
# that any changes caused by changes in the scripts' behavior stand out.

Proxmox VE tips

Just some tips I gathered over time. All in one easily reachable place so I can share it wherever I want.

Please note that unless you see a shebang (#!/...) these code blocks are usually meant to be copy & pasted directly into the shell. Some of the steps will not work if you run part of them in a script and copy paste other ones as they rely on variables set before.
The { and } surrounding some scripts are meant to avoid poisoning your bash history with individual commands, etc. You can ignore them if you manually copy paste the individual commands.
I chose to write things "in the open" that way so there's still some control and things don't become a black box.

Table of contents

@Kinyugo
Kinyugo / install_cursor.sh
Last active December 14, 2025 08:22
Cursor AI IDE Installer and Updater Script
#!/bin/bash
installCursor() {
local CURSOR_URL="https://downloader.cursor.sh/linux/appImage/x64"
local ICON_URL="https://miro.medium.com/v2/resize:fit:700/1*YLg8VpqXaTyRHJoStnMuog.png"
local APPIMAGE_PATH="/opt/cursor.appimage"
local ICON_PATH="/opt/cursor.png"
local DESKTOP_ENTRY_PATH="/usr/share/applications/cursor.desktop"
echo "Checking for existing Cursor installation..."
@sergeyk
sergeyk / AGENTS.md
Last active December 14, 2025 08:10
AGENTS.md file for Superconductor

Superconductor App Development Guide for AI SWE Agents

This is a Rails 8 app, using Tailwind for CSS (with DaisyUI), Slim for HTML templates, Phlex for view components, Stimulus for JavaScript, and Turbo for streaming updates. It runs using docker-compose, which we manage with dip.

Read more about the purpose and business logic of the app in @README.md

Initial Setup (already done)

Before you started, the following two commands were already run for you: bin/setup set everything up, and bin/dev started the web app.

@ProdeusUnity
ProdeusUnity / windowsimagecollection.md
Last active December 14, 2025 07:42
Windows ISO files
OS version Arch File Host Size Download Link Rate Limits
Windows 1.0 8086 Winworld (Kansas City, Missouri) 541KB Download ❌ Yes, 25 per day
Windows 2.0 386 Winworld (Kansas City, Missouri) 2.80MB Download ❌ Yes, 25 per day
Windows 3.0 8086/386
@mikelane
mikelane / claude-code-metrics.json
Created December 14, 2025 00:43
SigNoz dashboard for claude code metrics including time leverage and cost leverage metrics.
{
"description": "Monitor Claude Code usage, costs, tokens, and productivity metrics",
"layout": [
{
"h": 1,
"i": "row-overview",
"moved": false,
"static": false,
"w": 12,
"x": 0,