Skip to content

Instantly share code, notes, and snippets.

View AndreLester's full-sized avatar

André Kruger AndreLester

  • Private
  • Swellendam, South Africa
View GitHub Profile
@koaning
koaning / marimo-remote-guard.ts
Created April 13, 2026 13:45
marimo pi remote guard
import path from "node:path";
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
import { isToolCallEventType } from "@mariozechner/pi-coding-agent";
const SKILL_DIR = "/Users/vincentwarmerdam/.agents/skills/marimo-pair";
const ALLOWED_READ_ROOTS = [SKILL_DIR];
function hasDangerousShellSyntax(command: string): boolean {
return /(&&|\|\||;|\||>|`)/.test(command);
}
@r0xsh
r0xsh / 0-README.md
Last active April 19, 2026 08:36
Software KVM

This is a software to extand the capabilities of a USB Switch Hub. It use the protocol DDC/CI to change the input of my monitor. I'm using the UGREEN Switch USB 3.0

@ronkok
ronkok / csMacros.md
Last active July 12, 2026 08:36
Guide to Hurmet macros for civil and structural engineers

Guide to Hurmet macros for civil and structural engineers

To have these macros available in Hurmet.app, copy this text into a Hurmet calculation zone

macros = import("https://gist.githubusercontent.com/ronkok/317f8ce0f706608fa9b3e3258ecea138/raw/csMacros.txt") = !

Then, write a macro name, place the selection point after the name, and hit Alt-E.

ab

Mnemonic: Area of Bolt\

@bennyistanto
bennyistanto / UnitHydrographs.ipynb
Last active September 4, 2025 18:46
Obtain a Unit Hydrograph for a basin using the rainfall and streamflow data
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SMUsamaShah
SMUsamaShah / list_of_p2p_file_sharing.md
Last active July 23, 2026 14:18
List of P2P file sharing tools

Browser Based

  1. Web Wormhole https://webwormhole.io/ https://github.com/saljam/webwormhole
  2. Localsend https://web.localsend.org/
  3. FilePizza https://file.pizza/
  4. ShareDrop sharedrop.io https://github.com/szimek/sharedrop (SOLD, not recommended, use one of the forks)
    1. A clone SnapDrop snapdrop.net https://github.com/RobinLinus/snapdrop (SOLD, not recommended, use one of the forks)
      1. A fork PairDrop https://pairdrop.net/ https://github.com/schlagmichdoch/pairdrop
  5. ToffeeShare https://toffeeshare.com/
  6. Instant.io https://instant.io/
@veekaybee
veekaybee / normcore-llm.md
Last active July 20, 2026 05:40
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@vadimkantorov
vadimkantorov / csharpfrompython.cs
Last active December 31, 2025 14:59
Run a C# function from Python using Python.NET from https://pythonnet.github.io/pythonnet/python.html Call csharpfrompython.py which first calls the compiler and then calls the functions, feature request of better compiler bindings at https://github.com/pythonnet/pythonnet/issues/2196 ; includes two examples of NumPy -> C# array marshalling
namespace CSharpFromPythonNamespace
{
public class CSharpFromPythonClass
{
public string Hi(string x)
{
return "Hi " + x;
}
public static string Hello(string x)
@mheberger
mheberger / get_watersheds_mghydro.ipynb
Last active March 28, 2026 14:14
Demo using Python to download and save watershed boundaries and rivers geodata via the mghydro.com Global Watersheds web app API
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@4wk-
4wk- / README.md
Last active July 11, 2026 18:39
Clean uninstall then reinstall of WSL on Windows 10, with systemD support

Uninstall then reinstall WSL on Windows 10 (clean way)

Background

I've been using wsl (version 2) with genie mod for years without issue, but one day, Windows 10 finally catch up on wsl Windows 11 features and gives us a way to use systemD natively.

I wanted to use the new "right way" to enable systemD on Windows Subsystem for Linux (without genie), and I also had a (probably related) infinite Windows RemoteApp error poping in.

Fixing it

A - Uninstall wsl and related stuff

  1. In powershell (as admin)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.