Skip to content

Instantly share code, notes, and snippets.

@karpatic
karpatic / Termux Instructions.txt
Last active December 1, 2026 04:11
Instructions for setting up a Termux script to send a file to a specific domain with a single button on your Android homescreen using Termux:Widget.
to set up a script in Termux that can be run with a single button on your Android homescreen to send a file to a specific domain.
- Install Termux from F-Droid (or Google Play if available).
- Install Termux:Widget to create the button on the homescreen.
Complete Instructions: [here](https://github.com/termux/termux-widget)
When you install the Termux:Widget, it expects scripts (bash scripts with a .sh extension) to be located in a specific directory
(~/.shortcuts/). Any script you place in that directory will be automatically recognized by Termux:Widget and
will be available for you to place as a widget on your Android homescreen.
@egel
egel / auto-remove-sublime-license-popup
Last active December 1, 2026 03:58
Auto-remove Sublime's license popup
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sublime_plugin
import subprocess
from time import sleep
import sys
cl = lambda line: subprocess.Popen(line, shell=True, stdout=subprocess.PIPE).communicate()[0].strip()
log = lambda message: sys.stderr.write("Log: %s\n" % message)
@tejainece
tejainece / vscode_marketplace
Last active December 1, 2026 03:49
Marketplace for VS code to be used in Antigravity
https://marketplace.visualstudio.com/items
https://marketplace.visualstudio.com/_apis/public/gallery

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.

@Mr-Precise
Mr-Precise / vs_buildtools_dl_list.md
Last active December 1, 2026 03:40
MSVC / VS / Buildtools download link collection list
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS
@sweeneyde
sweeneyde / monoid_homology.py
Last active December 1, 2026 03:28
Monoid homology calculator
"""
Monoid Homology Calculator
written by Dennis Sweeney
Given a monoid M, we can produce a topological space (cw complex) BM,
whose n-cells are n-tuples of non-identity elements of M.
This program computes the integral homology of the space BM.
The problem of deciding whether two words are equal is not computable,
so we restrict to nice classes of monoid presentations. In particular,
@Zibri
Zibri / KMS_office.cmd
Created January 18, 2020 15:59 — forked from CHEF-KOCH/KMS_office.cmd
KMS server Windows
@echo off
title Microsoft Office 2019 versions are supported!&cls&echo
============================================================================&echo
#Project: Activating Microsoft software products for FREE without software&echo
============================================================================&echo.&echo
#Supported products:&echo - Microsoft Office Standard 2019&echo - Microsoft Office Professional Plus 2019&echo.&echo.&(if exist
"%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist
"%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b
..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b
..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo
@naofumi-fujii
naofumi-fujii / split-test-rb.md
Last active December 1, 2026 03:42
Advent Calendar 2026-12-01 : split-test-rb

RSpec の並列 CI を実行時間ベースで分散したら 3 割速くなった話

この記事は ポート株式会社 サービス開発部 Advent Calendar 2026 の 1 日目の記事です。

社内の Rails アプリの CI で、RSpec を複数ノードに分けて並列実行しています。その分け方を「行数ベース」から「実行時間ベース」に変えるために、split-test-rb という gem を作りました。

この記事では、その仕組みと、分け方を変えただけで CI の待ち時間が約 3 割減った結果を書きます。

並列 CI の所要時間は「一番遅いノード」で決まる

// Example: Opcode dispatch in a bytecode VM. Assume the opcode case dispatching is mispredict heavy,
// and that pc, ins, next_ins, next_opcase are always in registers.
#define a ((ins >> 8) & 0xFF)
#define b ((ins >> 16) & 0xFF)
#define c ((ins >> 24) & 0xFF)
// Version 1: Synchronous instruction fetch and opcode dispatch. The big bottleneck is that given how light
// the essential work is for each opcode case (e.g. something like ADD is typical), you're dominated
// by the cost of the opcode dispatch branch mispredicts. When there's a mispredict, the pipeline restarts