Skip to content

Instantly share code, notes, and snippets.

@Integ
Integ / unwxapkg.py
Last active October 24, 2026 01:18 — forked from feix/unwxapkg.py
A useful tool for unpack wxapkg file with python3 surport.
# coding: utf-8
# py2 origin author lrdcq
# usage python3 unwxapkg.py filename
__author__ = 'Integ: https://github.com./integ'
import sys, os
import struct
class WxapkgFile(object):
@blizzrdof77
blizzrdof77 / zha-moes-zigbee-rotary-smart-knob.yaml
Last active October 23, 2026 23:18
ZHA - Moes Tuya Smart Knob (TS004F) controller for lights
blueprint:
name: ZHA - Moes Tuya Smart Knob (TS004F) controller for lights
description: Control lights with a Moes Tuya smart knob (the spinny ones). You can set functions for single press, and rotating left/right will change the brightness smoothly of the selected light.
domain: automation
source_url: https://gist.github.com/blizzrdof77/0f686e66db30c871e362e24388c3f8fa
input:
remote:
name: Remote
description: Moes Tuya Smart Knob Device to use
selector:
@sony-mathew
sony-mathew / hide-folder.bat
Created February 20, 2018 17:58
Hide folders in windows operating system using this script. You can password protect it and view and open it without unhiding it. Used shell. [cmd]
@echo off
setlocal enabledelayedexpansion enableextensions
:: Hide a folder in windows xp, windows 7 or windows 8 with a password.
:: Follow the steps as follows :
:: 1. Open private.bat file in a text editor say notepad or geany.
:: 2. On line 5, you have set "directory=e:\private".
:: Change the path from e:\private to your specified folder to hide.
:: If the path contains spaces then enclose in double quotes.
:: For eg: if your path is "f:\cool Guys" then change the line 5 to set directory="f:\cool Guys".
@MCJack123
MCJack123 / client.lua
Last active October 23, 2026 22:35
Door lock program for ComputerCraft using secure remote servers, supporting optional key expiration & use limits
-- Save this as startup.lua on each client computer with a drive and modem attached. You can also optionally attach a speaker for audio feedback.
local secret = "" -- Set this to the same secret that was set in the server file.
local redstoneSide = "left" -- Set this to the side the redstone signal should be output on.
local openTime = 5 -- Set this to the number of seconds to keep the door open for.
local defaultOutput = false -- Set this to the default redstone state for the door. If set to true, this means power will be cut when unlocking.
-- This allows you to place a door sideways, and then have it stay closed even when power is applied externally.
if not secret or secret == "" then error("Please set some keys inside the script before running.") end
local ok, err = pcall(function()

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.

@debakarr
debakarr / kodekloud_course_decks.md
Last active October 23, 2026 21:58
Course decks for KodeKloud
@m3y54m
m3y54m / terminal-proxy-settings.md
Last active October 23, 2026 21:54
Set Proxy in Terminal (Bash, CMD, PowerShell, etc.)
@mollietaylor
mollietaylor / reality.R
Created October 5, 2012 03:10
Random Name Generator in R
# recreating realitytvgenerator.com
# dictionary:
# define our two vectors with the names we'd like to use
first <- c("Fear", "Frontier", "Nanny", "Job", "Yard", "Airport", "Half Pint", "Commando", "Fast Food", "Basketball", "Bachelorette", "Diva", "Baggage", "College", "Octane", "Clean", "Sister", "Army", "Drama", "Backyard", "Pirate", "Shark", "Project", "Model", "Survival", "Justice", "Mom", "New York", "Jersey", "Ax", "Warrior", "Ancient", "Pawn", "Throttle", "The Great American", "Knight", "American", "Outback", "Celebrity", "Air", "Restaurant", "Bachelor", "Family", "Royal", "Surf", "Ulitmate", "Date", "Operation", "Fish Tank", "Logging", "Hollywood", "Amateur", "Craft", "Mystery", "Intervention", "Dog", "Human", "Rock", "Ice Road", "Shipping", "Modern", "Crocodile", "Farm", "Amish", "Single", "Tool", "Boot Camp", "Pioneer", "Kid", "Action", "Bounty", "Paradise", "Mega", "Love", "Style", "Teen", "Pop", "Wedding", "An American", "Treasure", "Myth", "Empire", "Motorway", "Room", "Casino", "Comedy", "Unde
@jan-zezula
jan-zezula / Omarchy_SB_TPM2_Auto-Unlock.md
Created August 30, 2026 19:09
Secure Boot + TPM2 Auto-Unlock on Omarchy 4.0.x

Step-by-step guide for enabling Secure Boot with TPM2-based automatic LUKS unlock on a fresh Omarchy 4.0.x installation (Limine bootloader, Btrfs, Snapper).

Prerequisites

  • Fresh Omarchy 4.0.x installed on a laptop with TPM2
  • UEFI Secure Boot switched to Setup Mode (in BIOS settings)
  • LUKS2-encrypted root partition (Omarchy default)
  • Physical access to the laptop with working internet, browser and terminal