Skip to content

Instantly share code, notes, and snippets.

View Gravifer's full-sized avatar

Tci Gravifer Fang Gravifer

View GitHub Profile
@AGWA
AGWA / gist:5a78186e0f4a7d537b8891a7b46f9458
Created October 20, 2026 06:31
Certificates issued by blocked emSign CAs
Null display is "NULL".
operator_name | not_before | not_after | dns_names | cert_sha256
---------------+------------------------+------------------------+--------------------------------------------+------------------------------------------------------------------
emSign | 2026-10-19 20:24:33+00 | 2027-05-07 20:24:32+00 | {*.emsign.filippo.io,emsign.filippo.io} | 3c3d0982b3cc4ffe19c9343991ad34fe474042344fa551ff309a5a6b069cf0b4
emSign | 2026-10-19 20:37:26+00 | 2027-11-20 20:42:26+00 | {dv-g3b-emudhra.we-have-a-problem.com} | 325627388d71255f5aeb1f2d0b695b8428d7372627f7f80c55e544d159113f6d
emSign | 2026-10-19 20:37:26+00 | 2027-11-20 20:42:26+00 | {dv-g3c-emudhra.we-have-a-problem.com} | a44b8c7a125fb1fe4c2b34df5d2695530d0fdd3ab920e5af4da793f920189d36
emSign | 2026-10-19 20:37:26+00 | 2027-11-20 20:42:26+00 | {ev-g3b-emudhra.we-have-a-proble
@nicobrenner
nicobrenner / banking77_gist.py
Last active October 19, 2026 04:36
Banking77: 94.25% accuracy with a 642 KB logistic classifier (embeddings + sklearn)
#!/usr/bin/env python3
"""
Banking77: frozen embeddings + logistic regression for 77-class intent detection.
Uses the Banking77 dataset (3,080 test queries across 77 banking intents)
to show what a simple pipeline can do: convert text to vectors with a
pre-trained embedding model, then train an sklearn LogisticRegression on top.
The embedding model is used as-is — no fine-tuning, no GPU needed.
The classifier + scaler weigh about 642 KB. The embedding model
@wheelercj
wheelercj / backup.py
Last active September 17, 2026 16:42
Back up iPhone photos to Ubuntu
import subprocess
from pathlib import Path
from time import sleep
# This script backs up iPhone photos to an Ubuntu computer. Plug the iPhone into the computer and
# run this script on the computer after changing the two paths below. I forget how I found the
# path of the photos on my phone, but part of the answer can be found online and the rest by
# plugging in your phone and exploring with a terminal. If you're interested in this script, let me
# know and I can make it much better.
@blume0
blume0 / proj_out_of_stuck_prop.lean
Last active November 12, 2026 15:36
Weird metaprogramming-free reproducer of https://github.com/leanprover/lean4/pull/14807/
-- STEP 1:
-- have an instance of failure of transitivity of defeq with: a b c : A, a EQ b, a EQ c, but not b EQ c
-- @jeanas's more understandable way to obtain a "neutral"/stuck term
-- https://gitlab.com/-/snippets/6035570
instance True_setoid : Setoid True where
r := (· = ·)
iseqv.refl _ := rfl
iseqv.symm _ := rfl
@dmmulroy
dmmulroy / coding-standards-draft.md
Created June 18, 2026 22:39
coding-standards-draft.md

TypeScript Coding Standards

These standards describe how to design and write TypeScript code in this codebase. They are especially intended for agents: before adding patterns, libraries, adapters, or abstractions, read the existing code and prefer the local convention unless it conflicts with the safety/correctness principles below.

Decision priority

When rules pull in different directions, use this order:

  1. Preserve correctness, safety, and debuggability.
  2. Follow established project architecture and conventions.
@rlueder
rlueder / claude-code-pr-workflow.md
Last active July 11, 2026 21:26
Automated PR Reviews with Claude Opus on AWS Bedrock — GitHub Actions workflow

Automated PR Reviews with Claude Opus on AWS Bedrock

A GitHub Actions workflow that uses Claude Opus (via AWS Bedrock) to automatically review pull requests with inline comments.

Features

  • Two-round review system — Round 1 reviews the full diff, Round 2 only reviews changes made after Round 1 (to address feedback). No further reviews after Round 2.
  • Inline PR comments — Feedback is posted as review comments on specific file/line, not just a wall of text.
  • Cost tracking — Each review comment includes token usage and estimated cost.
  • Smart skipping — Docs/config-only PRs are skipped automatically.
@interpiduser5
interpiduser5 / news.md
Created February 20, 2026 01:28
MuMu Player Pro (NetEase) silently runs 17 system reconnaissance commands every 30 minutes on macOS

Summary

MuMu Player Pro for macOS (by NetEase) executes a comprehensive system data collection routine every 30 minutes while the emulator is running. This includes enumerating all devices on your local network, capturing every running process with full command-line arguments, inventorying all installed applications, reading your hosts file, and dumping kernel parameters -- all tied to your Mac's serial number via SensorsData analytics.

None of this is disclosed in MuMu's privacy policy. None of it is necessary for an Android emulator to function.

Environment

  • App: MuMu Player Pro for macOS (v1.8.5)
  • Bundle ID: com.netease.mumu.nemux-global
@srcreigh
srcreigh / diagnostics.zig
Last active February 18, 2026 18:43
Zig union(enum)-based diagnostics
// =============================================================================
// diagnostics.zig: Generic union(enum) Diagnostics error
// payloads library
//
// MIT LICENSE (C) 2026 Shane Creighton-Young
//
// Project Link: https://gist.github.com/srcreigh/1d05f1e74150e9c50938c1b6e7bcdff6
//
// HOW TO USE
// - Read the article https://srcreigh.ca/posts/error-payloads-in-zig/
@karpathy
karpathy / microgpt.py
Last active November 21, 2026 00:28
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@jake-stewart
jake-stewart / color256.md
Last active October 9, 2026 19:12
Terminals should generate the 256-color palette

Terminals should generate the 256-color palette from the user's base16 theme.

If you've spent much time in the terminal, you've probably set a custom base16 theme. They work well. You define a handful of colors in one place and all your programs use them.

The drawback is that 16 colors is limiting. Complex and color-heavy programs struggle with such a small palette.