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 14, 2025 05:05
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:)')
@Jaykul
Jaykul / Agent Passthru.md
Last active November 30, 2025 22:11
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:

@JakeCoxon
JakeCoxon / distribute.py
Created December 24, 2020 21:32
Blender addon to distribute objects along an axis
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.