Skip to content

Instantly share code, notes, and snippets.

@Tes3awy
Tes3awy / ansible-wsl.md
Last active May 15, 2026 11:21
Install Ansible (ansible [core 2.11.6]) on Windows Subsystem for Linux (WSL) and run your first playbook

Install Ansible release (Recommended)

The Windows Subsystem for Linux (WSL) is not officially supported by Ansible and should not be used for production.

$ sudo apt update && sudo apt upgrade -y
$ sudo apt install python3-pip git libffi-dev libssl-dev -y
$ pip3 install --user ansible pywinrm # pywinrm is a Python client for the Windows Remote Management (WinRM) service
/* center radius (pixels) */
#define C_RADIUS 48
/* center line thickness (pixels) */
#define C_LINE 2
/* outline color */
#define OUTLINE #605225
/* number of bars (use even values for best results) */
#define NBARS 180
/* width (in pixels) of each bar*/
@Oblivionsage
Oblivionsage / thorchain-vault-churn-exploit.md
Created May 15, 2026 11:13
THORChain Router Exploit - Vault Churn Address Poisoning (~$7.4M) - Root Cause Analysis

vault churn address poisoning in THORChain Router

hey. found the root cause of the THORChain exploit from today (May 15, 2026). ~$7.4M drained across ETH, BSC, Base, and BTC. protocol got globally paused right after.

posting this because the funds are already gone and the network is halted, nothing here helps the attacker at this point. sharing so people understand what actually happened.

what happened

someone poisoned the vault churn process. during a routine vault migration (MIGRATE:26146440), the old asgard vaults transferred all their ERC20 token allowances to an attacker-controlled address instead of the real new vault. attacker then called transferOut on the router and drained everything.

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.

Ghostty Keyboard Shortcuts

Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.

Window Management

Action Windows/Linux macOS
New window Ctrl+Shift+N Cmd+N
Close window Alt+F4 Cmd+Shift+W
@gbraad
gbraad / README.md
Last active May 15, 2026 11:17
Import devenv image into container runtime

Import devenv WSL image into container runtime

Note

This will describe in short how to get your old wsl environment running in a container runtime, such as containerd or Podman. While it is possible to use vhdx, I had better results with tarballs. A vhdx needs to be converted, use qemy-nbd etc, as you can not boot this as a VM unless you install the kernel and modules.

Prepare WSL export

@lordneon
lordneon / steps.md
Last active May 15, 2026 11:15
UK Light Wiring with Shelly 1

Intro

This is a simple guide on how to automate UK lights with a Shelly 1 by installing the shelly 1 relay into the ceiling pendant which has both permanent live, neutral and a switched live back from the wall switch.

These steps are from my own experience making my lighting "smart" but also user friendly (it works via a wall switch!). This simple guide will go through replacing an a normal ceiling pendant with one with room for a Shelly 1. If you have a ceiling light with a bigger base it's even easier.

Warning Electrical regulations must be followed by law. If you are not a competent person under the regulations do not attempt electrical work. https://www.diydoctor.org.uk/projects/electrical_safety.htm

Wiring Diagram

This diagram has been taken from here and modified to include the Shelly 1. Wiring Diagram

@robconery
robconery / Book.md
Last active May 15, 2026 11:14
Obsidian Bujo Templates
title {{title}}
description {{description}}
author {{author}}
created
{"DATE:YYYY-MM-DD HH:mm:ss" => nil}
updated
{"DATE:YYYY-MM-DD HH:mm:ss" => nil}

cover|150

@hnajafli
hnajafli / windows10activation
Created August 21, 2020 23:01
Activate Windows 10 without Any Activator
1. Open CMD as Administrator
2. Paste the following commands into the Cmd: One by one, follow the order.
cscript slmgr.vbs /ipk "SERIAL NUMBER HERE"
Replace SERIAL NUMBER HER with any of these, according your Windows 10 installation type.
Home/Core TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home/Core (Country Specific) PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
Home/Core (Single Language) 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH