Skip to content

Instantly share code, notes, and snippets.

Josef Fröhle Dexus

View GitHub Profile
@benoit-cty
benoit-cty / recover_pr.py
Created December 1, 2025 09:17
Sha1-Hulud closed PR restore script
"""
Hello, here is a script to restore a deleted PR even if you don't have it locally :
Run it in the project folder with the project and PR number as argument :
openfisca-core> python3 recover_pr.py openfisca/openfisca-core 1338
It will give you the command line to restore :
Analyzing PR openfisca/openfisca-core#1338...
Found force-push event by Ndpnt on 2025-11-25T21:32:00Z
Before: 65a22ed928d579284a36c1252be67d8f43d9f0dd
After: d2e7131536b0087227353a220a58577eca98c169
----------------------------------------
@orneryd
orneryd / claudette-agent.installation.md
Last active December 27, 2025 21:46
Claudette coding agent (System Prompt, Preamble, Chatmode, etc…) built especially for free-tier models like chatGPT-3/4/5+ to behave more similar to Claude. Claudette-auto.md is the most structured and focuses on autonomy. *Condensed* nearly the same but smaller token cost for smaller contexts, *Compact* is for mini contexts. Memories file suppo…

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"

GitHub Copilot Custom Agent Mode

I modified that beast mode to be more robust, and I love it. Refactored an entire older repo I made from years ago just for fun and was able to do perfectly

I call it "Extensive Mode"

"Extensive Mode.chatmode.md"

The tools should be customized per environment and what you have available,

@rsms
rsms / macos-distribution.md
Last active October 31, 2025 06:37
macOS distribution — code signing, notarization, quarantine, distribution vehicles
import os
import time
import shutil
import argparse
# Create the argument parser
parser = argparse.ArgumentParser(description='Pico Firmware Flasher')
parser.add_argument('uf2_file_path', metavar='UF2_FILE', type=str, help='Path to the UF2 file')
parser.add_argument('-d', '--drive_letter', type=str, default='D:', help='Drive letter of the Pico (default: D:)')
#!/usr/bin/env python3
from __future__ import annotations
import secrets
import gzip
import json
import uuid
import requests
from dataclasses import dataclass, asdict, is_dataclass, field
from Crypto.PublicKey import RSA
from Crypto.Cipher import AES, PKCS1_v1_5
@Jaykul
Jaykul / Agent Passthru.md
Last active December 28, 2025 15:20
SSH Agent passthru to WSL 2 (working, in Windows 11, in May 2023)

For awhile now, each time I got a new Windows laptop I would dig up strasis gist on how to set up agent forwarding for SSH in WSL2 -- but recently I tried to point someone else at it and they were very confused by it, so this is my attempt at simpler instructions.

Installation

With Chocolatey, you must use an elevated PowerShell session. If there's no choco command found, it will fall back to winget for the npiperelay install. To force using Winget even if you have choco installed, you need to download it, so you can pass parameters to it.

Easy mode: just run this in PowerShell: