This repository implements a comprehensive HTTP server application written in Rust. It serves files from a directory with features including directory listing, authentication, WebDAV support, archive generation (ZIP/TAR), bandwidth limiting, TLS encryption, and response compression. The architecture is monolithic, using the Iron web framework with Hyper for HTTP handling. Key components include modular operation handling (file serving, WebDAV, archiving), command-line option parsing, OS-specific utilities, and intelligent caching mechanisms for encoded content.
This is a Laravel package that enables self-hosting of Google Fonts by fetching font CSS and asset files from Google's servers, storing them locally on a configurable filesystem disk, and serving them via Blade directives. The core logic resides in the `GoogleFonts` service class, which handles downloading, caching, and rendering fonts either inline or as external stylesheets with optional preload support. The package provides a fallback mechanism to load fonts directly from Google if local storage fails. It is well-tested with Pest and snapshot assertions, supports a wide range of Laravel versions (8β13) and PHP 8.0+, and follows Spatie's typical high-quality package structure with clean separation of concerns, config-driven behavior, and a dedicated Artisan command for prefetching fonts.
lua-resty-logger-socket is a Lua library for Nginx (using ngx_lua) that provides nonblocking remote logging. It buffers log messages in memory and sends them to a remote log server (via TCP, UDP, or Unix domain socket) when the buffer reaches a configurable size or when manually flushed. The library implements efficient buffering with two-level buffers to minimize string concatenation, buffer reuse to prevent memory leaks, retry logic for connection and send failures, periodic flushing, and graceful handling of Nginx worker shutdown to flush remaining logs. It supports SSL with SNI and certificate verification.
Deps.rs is a production web service that analyzes Rust project dependencies to detect outdated or insecure versions. It fetches Cargo.toml manifests from source repositories (GitHub, GitLab, Bitbucket, SourceHut, Codeberg, Gitea) or crates.io, crawls workspace members and internal dependencies, then compares declared version requirements against the latest crates.io releases while checking every release against the RustSec Advisory Database. Results are rendered as an HTML page with per-dependency status tables and as configurable SVG badges (flat, flat-square, for-the-badge) for README integration, plus a shields.io-compatible JSON endpoint. Built as a single-binary monolithic web server using Actix-web, Tokio, and Reqwest, the application maintains its own cached crates.io Git index with smart recovery strategies (slotmap expansion, full reclone) and uses an LRU cache with TTL for query responses. The codebase follows modern Rust idioms (async/await, edition 2024, comprehensive testing) and is well-organized into separable modules: an engine with finite-state machines for manifest crawling and dependency analysis, a badge rendering library (standalone workspace member), and a parser for Cargo.toml with support for target-specific and renamed dependencies.
This repository contains Helm charts and tooling for deploying the Astronomer Platform (a Kubernetes-hosted enterprise data platform for Apache Airflow) into Kubernetes clusters. It provides a modular architecture with subcharts for core components (Houston API, Commander, Navigator, Pilot, Registry) and infrastructure (NGINX, Prometheus, Grafana, Alertmanager, Elasticsearch, Vector, PostgreSQL, NATS). The repository supports multiple deployment topologies (control plane, data plane, unified) and includes enterprise features like high availability, network policies, RBAC, and external secret management. Extensive testing validates chart rendering and functional behavior across Kubernetes versions, with automation scripts for local development, version migration, and cluster setup.
Laravel Exchange Rates is a Laravel package that provides a unified interface for interacting with multiple exchange rate APIs. It implements a driver pattern to support Exchange Rates API, Exchange Rates Data API, Exchange Rate Host, and CurrencyBeacon. The package allows developers to get current and historical exchange rates, convert currencies between different denominations, and cache results to minimize API calls. Architecture follows Laravel conventions with service providers, facades, and a Manager-based driver system. The SharedDriverLogicHandler component demonstrates strong abstraction skills by eliminating code duplication across API drivers while maintaining clean separation of concerns.
FuseFixer is an Android Xposed module that hooks into the MediaProvider's FUSE daemon to prevent package name existence leakage via Unicode Default_Ignorable_Code_Points. The module intercepts path comparison functions (strcasecmp, EqualsIgnoreCase) and access control checks (is_package_owned_path, is_app_accessible_path, is_bpf_backing_path) in the native libfuse_jni.so library, stripping out ignorable code points before evaluation. This closes a vulnerability where attackers could bypass directory access restrictions on /storage/emulated/.../Android/data by inserting invisible Unicode characters. The project includes a custom ELF parser for dynamic symbol resolution, a maps scanner, and a debug UI for testing. The native code is written in C++20 and demonstrates deep understanding of Android's FUSE implementation, kernel casefold behavior, and FUSE BPF internals.
Otter Music is a cross-platform music player application that aggregates multiple music sources (NetEase, QQ Music, Kuwo, Kugou, Migu, Bilibili, etc.) into a unified interface. It features music search, playback, playlist/favorites management, lyrics display, sleep timer, offline downloading, and cross-device synchronization via Cloudflare KV. The architecture combines a React/Vite frontend with Zustand state management, a Cloudflare Workers/Hono backend for API proxying and sync, and Capacitor for native Android integration. Key entry points include src/main.tsx (frontend root), functions/app.ts (backend), and android/app/src/main/java/com/otterhub/music/MainActivity.java (native). Data flows involve unified music API calls to platform-specific providers, audio URL resolution with caching, encrypted IndexedDB persistence for user state, and sync via Cloudflare KV. External dependencies include numerous music APIs, Capacitor, React, Zustand, Tailwind CSS, and Radix UI primitives.
This repository is a knowledge package designed to create an AI agent skill that embodies Charlie Munger's thinking framework. It doesn't contain executable code but rather curates and structures Munger's mental models, decision heuristics, and communication style into a usable format for AI agent runtimes. The core output is the SKILL.md file, which provides detailed instructions for how an AI agent should adopt Munger's perspective when responding to user queries, including role-playing rules, a response workflow requiring research before answering, and specific guidelines for expressing Munger's characteristic communication style. The repository represents a sophisticated approach to expertise capture and encoding for AI systems. It synthesizes information from over 50 sources including Berkshire Hathaway shareholder meetings, USC/Harvard speeches, interview records, and external criticisms to distill Munger's approach into five core mental models, eight decision heuristics, and a detailed expression DNA. The references/ directory contains the source research materials, demonstrating transparency about the knowledge foundation. Examples/show how the skill works in practice through sample conversations about investment decisions, team management, and content creation. While primarily a knowledge resource, the structure of the SKILL.md file itself offers potential reusability as a template for creating similar 'thinking style' skills for other experts or domains. The systematic approach to encoding expertise through role-playing protocols, mental model collections, decision frameworks, and communication guidelines represents a pattern that could be adapted with domain-specific content substitution for other AI agent skills.
deanonymizer is a command-line tool designed for privacy self-audits. It collects public data from platforms like Reddit, Hacker News, GitHub, and Stack Overflow for specified usernames, then analyzes this data to identify personally identifiable information (PII) and other linkable information. The analysis combines a configurable LLM backend (Anthropic, OpenAI, or Claude Code) for inferring soft signals (location, employer, etc.) with a deterministic regex pass for hard identifiers (emails, social handles). The tool outputs a detailed report highlighting findings with confidence levels and remediation suggestions, enabling users to reduce their online footprint. The architecture is modular, separating concerns into CLI handling, platform-specific data fetching, analysis orchestration, LLM abstraction, and report generation.
EcoLogits is a Python library that estimates the environmental footprint (energy, GHG emissions, abiotic resource depletion, primary energy, water consumption) of generative AI model inference accessed through provider APIs. It integrates with official client libraries for OpenAI, Anthropic, Cohere, Mistral AI, HuggingFace Hub, Google GenAI, and LiteLLM by monkey-patching their core methods using `wrapt`. When a user makes an API call, the library intercepts the request, measures latency, looks up model characteristics and electricity mix data, and attaches an `ImpactsOutput` object to the response containing usage and embodied impact estimates with uncertainty ranges. Architecturally, the library is organized around a provider instrumentor pattern: each provider has a tracer class that wraps sync/async and streaming/non-streaming methods. Impact calculations are performed by a Directed Acyclic Graph (DAG) engine that resolves interdependent computations (energy, GWP, ADPe, PE, WCF) from regression coefficients and data files. The library also supports video generation impact estimation via a standalone function. An optional OpenTelemetry integration exports metrics to an OTLP endpoint. Key entry points are `EcoLogits.init()` to enable tracers for selected providers, and `video_impacts()` for video generation. External dependencies include provider SDKs (openai, anthropic, etc.), `wrapt` for wrapping, `pydantic` for data models, and optionally `opentelemetry-api` and `opentelemetry-sdk`. The library is published on PyPI and documented with MkDocs. While primarily a software library, EcoLogits has a strong data/research character: its methodology is based on Life Cycle Assessment principles, relies on curated JSON data files (models, electricity mixes, video models) that require regular updates, and is published in the Journal of Open Source Software. The codebase demonstrates high craftsmanship with clean abstractions, extensive testing, and a well-documented methodology.
tagpr is a Go CLI tool that automates the GitHub release workflow. It runs as a GitHub Action, monitoring the main branch. When unreleased changes exist, it creates or updates a release pull request with an auto-generated changelog. When that PR is merged, tagpr automatically tags the merge commit with the next semantic or calendar version and creates a GitHub Release. It supports monorepo configurations via tag prefixes, custom version files, label-based version bumping, and both SemVer and CalVer schemes. The tool integrates deeply with the GitHub API (PRs, releases, git trees, issues) and local git commands. It also includes a reusable submodule `gh2changelog` for generating changelogs from GitHub release notes. The codebase is well-structured, with clear separation of concerns, extensive tests, and a functional options pattern for configuration.
TrafficGuard is a Go-based CLI utility for network security that blocks known port scanners by configuring iptables/ip6tables and ipset. It downloads lists of malicious IP subnets, creates ipset sets, and configures firewall rules to drop traffic from these addresses. The tool includes optional logging with aggregation, automatic persistence of firewall rules across reboots via systemd services, and a comprehensive uninstall mechanism. It features intelligent integration with UFW (Uncomplicated Firewall) when present, with safeguards to prevent SSH lockout.
Dynamiqs is a high-performance Python library for simulating quantum systems, built on JAX for GPU acceleration and automatic differentiation. It provides solvers for the SchrΓΆdinger equation, Lindblad master equation, stochastic master equations (diffusive and jump), and Floquet integration, with support for time-dependent Hamiltonians, batching over parameters, and gradient computation (including Hessians). The architecture is modular: an abstract integrator hierarchy (with concrete solvers using Diffrax, matrix-exponential, low-rank, Rouchon, and Monte Carlo methods), custom quantum array types (dense and sparse diagonal DIA layout), a clean `TimeQArray` abstraction for time-dependent operators, and utilities for state/operator construction, plotting, and quantum information metrics. The library is designed for quantum optimal control and parameter estimation, and is used in production at Alice & Bob. It features extensive automated tests (including numerical gradient/Hessian validation) and is actively maintained with a growing community.
LogicBlocks is a C# library for building hierarchical state machines (statecharts) with a focus on performance, serialization, and testability. It provides a `LogicBlock` base class that manages state transitions via input handlers (`IGet<TInput>`), supports pushdown automaton history, async task integration, and observable bindings. The library includes an `AutoBlock` extension for automatic state preallocation and serialization using Chickensoft's introspection and serialization frameworks, and a Roslyn source generator (`DiagramGenerator`) that produces PlantUML state diagrams from annotated state classes. The codebase is well-structured with extensive unit tests, clean separation of concerns, and a fluent API for bindings. It is designed for AOT environments and game development (Godot). The repository also contains a tutorial and a vending machine example.
learnX is a React Native/Expo mobile application designed for Tsinghua University students to access the Web Learning platform (learn.tsinghua.edu.cn). It provides features such as SSO authentication, course management, assignment tracking, file handling, calendar synchronization, and course information sharing via the courseX platform. The app uses Redux for state management, React Navigation for routing, and React Native Paper for UI components, with TypeScript ensuring type safety. It includes background data synchronization and supports iOS, Android, macOS, and Windows (via WSA).
Tangermeme is a PyTorch library for post-training interpretability of sequence-based deep learning models in regulatory genomics. It provides a comprehensive suite of functions for analyzing what a trained model has learned about cis-regulatory elements, including attribution methods (DeepLIFT/SHAP, saturation mutagenesis, PISA), sequence perturbation experiments (marginalization, ablation, variant effect, spacing analysis), motif discovery via seqlet calling (recursive and TF-MoDISco-style), and sequence design (greedy/beam search substitution). The library is designed to be assumption-free, extensible to any alphabet, and works with any PyTorch model that operates on one-hot encoded sequences. Key entry points are the `deep_lift_shap`, `predict`, `ersatz`, `marginalize`, `ablate`, `seqlet`, `annotate`, and `design` subpackages, all exposed through a consistent API that accepts a `func=` argument for composability. The library includes a built-in Claude Code skill installer for AI-assisted development, extensive unit tests with toy models, and documentation with tutorials and vignettes. Tangermeme is actively developed (semantic versioning, regular releases) and targets bioinformaticians working with models like BPNet, Enformer, Beluga, or ChromBPNet.
Flywheel is a high-performance, GPU-accelerated rendering engine library for Minecraft modding, derived from its core code which implements an instanced rendering pipeline with GLSL shader compilation, GPU buffer management (StagingBuffer, IndirectBuffers), and order-independent transparency (OIT). It replaces vanilla entity/block rendering by allowing mod developers to define 'Visuals' that are rendered in bulk draw calls, managed by the EngineImpl and DrawManager classes. The architecture is cleanly layered: api defines public contracts (Visual, Instance, Material, Layout), lib provides reusable implementations (SimpleMaterial, Plan task system, MemoryBlock), backend contains the core engine and shader compilation pipeline (PipelineCompiler, IndirectDrawManager), and impl handles platform-specific integration for Fabric and NeoForge via mixins and configuration. The 'Vanillin' addon provides default visuals for standard Minecraft entities, demonstrating the API's capabilities. Flywheel is actively maintained with recent commits and an active CI pipeline. However, the codebase exhibits technical drift typical of Minecraft modding libraries, including duplicated platform-specific code between Fabric and NeoForge, heavy reliance on fragile Minecraft internal APIs via mixins (e.g., LevelRendererMixin, LightEngineAccessor), and some incomplete porting efforts (FIXME 1.21.11). Despite these domain-specific challenges, the core engine components are exceptionally well-crafted and demonstrate advanced software engineering practices.
Sunlight is a production-grade, static Certificate Transparency (CT) log implementation written in Go, sponsored by Let's Encrypt. It implements the C2SP Static CT API and provides both a write-path log server (cmd/sunlight) and a read-path static file server (cmd/skylight). The system accepts certificate submissions via the RFC 6962 add-chain/pre-chain endpoints, sequences them into a Merkle tree using the tlog library, and publishes tiles (hash, data, names) along with signed checkpoints. It also supports the tlog-witness and tlog-mirror protocols for transparency and cross-checking. The architecture is modular: the core log engine lives in internal/ctlog with pluggable backends for storage (local filesystem, S3, in-memory) and distributed locking (SQLite, DynamoDB, ETag-based S3). The sequencer uses a pool of pending entries with low-priority eviction, batched sequencing, and staged uploads via tarballs for crash recovery. Deduplication is handled via a SQLite cache with 256-bit hashes. The system includes extensive observability with Prometheus metrics, structured logging, and debug endpoints for heavy hitters and SSL key logging. Key entry points include the main server binaries (cmd/sunlight, cmd/skylight), a key generation tool (cmd/sunlight-keygen), a partial tile garbage collector (cmd/partial-aftersun), a cache recomputation tool (cmd/recompute-cache), and a names tile generator (cmd/names-prism). The client library (client.go) provides a high-level API for fetching and verifying log entries and inclusion proofs. External dependencies include certificate-transparency-go, torchwood, and golang.org/x/mod/sumdb/tlog. The codebase demonstrates high craftsmanship with several reusable internal packages: durable crash-safe file writes, immutable file flag setting, HyperLogLog cardinality estimation, Space Saving heavy hitters, and a custom XAES-256-GCM implementation. Testing is extensive, including in-memory fake backends, synctest for time-dependent rate limits, and deterministic test data generation.
This repository provides a Dart FFI binding for llama.cpp, targeting Flutter mobile apps on iOS, Android, and macOS. It wraps the native C API with a modular, isolate-safe architecture: a worker isolate (LlamaEngine) owns the native model and context, while the main isolate communicates via message passing. The binding exposes streaming token generation, chat template rendering, multimodal (vision/audio) support, speculative decoding, context shifting, and session persistence. The codebase is well-structured with clear separation of concerns: FFI bindings, model/context wrappers, sampling, tokenization, and generation logic are each in their own modules. It uses modern Dart features (sealed classes, records, pattern matching) and demonstrates high craftsmanship in error handling, resource management, and cross-isolate communication. The package is a Flutter plugin with native-assets build hooks for Android and Swift Package Manager support for Apple platforms.