Skip to content

Instantly share code, notes, and snippets.

@kangtastic
kangtastic / sha1.py
Last active October 24, 2026 13:56
An implementation of the SHA-1 hash algorithm in pure Python 3.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright © 2019 James Seo <james@equiv.tech> (github.com/kangtastic).
#
# This file is released under the WTFPL, version 2 (wtfpl.net).
#
# sha1.py: An implementation of the SHA-1 hash algorithm in pure Python 3.
#
# Description: Zounds! Yet another rendition of pseudocode from Wikipedia!
@camerongray1515
camerongray1515 / shelly_smart_bulb_control.js
Created October 4, 2025 12:27
Shelly Smart Bulb Control with Fallback
// Shelly 1 Mini Gen4 script
// Input: detached push button (input:0)
// Relay: switch:0
// Virtual boolean: id=200 ("Confirm")
let SW_INPUT = 0;
let SW_OUTPUT = 0;
let CONFIRMED_ID = 200;
let TIMEOUT_MS = 1000;

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.

@yifanwang-yet
yifanwang-yet / libretv-sources.json
Last active October 24, 2026 13:52
LibreTV 点播源+直播源订阅 (2026-10-13 实测)
{
"name": "yifan 精选源列表 (2026-10-13 实测可用)",
"version": 2,
"sources": [
{ "name": "暴风资源", "url": "https://bfzyapi.com/api.php/provide/vod", "isAdult": false },
{ "name": "非凡资源", "url": "https://cj.ffzyapi.com/api.php/provide/vod", "isAdult": false },
{ "name": "量子资源", "url": "https://cj.lziapi.com/api.php/provide/vod", "isAdult": false },
{ "name": "无尽资源", "url": "https://api.wujinapi.me/api.php/provide/vod", "isAdult": false },
{ "name": "优酷资源", "url": "https://api.ukuapi88.com/api.php/provide/vod", "isAdult": false },
{ "name": "光速资源", "url": "https://api.guangsuapi.com/api.php/provide/vod", "isAdult": false },
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active October 24, 2026 13:50
Conventional Commits Cheatsheet
@alsyundawy
alsyundawy / Microsoft-Office-For-MacOS.md
Last active October 24, 2026 13:46
Microsoft Office For MacOS

🖥️ Installer for Microsoft Office for macOS

Microsoft Office for macOS

image

Your ultimate resource for macOS Office installers, serializers, and troubleshooting.

Donate with PayPal Donate with Ko-fi Sponsor on GitHub Latest Version Maintenance Status [License](https://github.com/alsyun

@ryanhossain9797
ryanhossain9797 / windows_activation.md
Created February 11, 2025 17:23 — forked from bramada/windows_activation.md
Activate Windows for free

For Windows 10

Step 1 - Open PowerShell or Command Prompt as administrator

Step 2 - Install KMS client key

slmgr /ipk your_license_key

Replace your_license_key with following volumn license keys according to Windows Edition:

@fsimonis
fsimonis / README.md
Created November 19, 2024 10:03
Tool to expand CMake unity builds for clangd support

deunify

This tool exands the compile_commands.json of unity build files generated by CMake to enable clangd support.

Without this, clangd doesn't know what to do with the compilation units.

Default file is compile_commands.json in the current working directory. Outputs to console by default. Use -i to update in-place.

To use:

@mnabila
mnabila / JetBrains trial reset.md
Created February 28, 2024 08:17
Reset all JetBrains products trial in Linux

In some cases, only these lines will work

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done

But if not, try these