Skip to content

Instantly share code, notes, and snippets.

View kim0's full-sized avatar

Ahmed Kamal kim0

  • http://cloud9ers.com/
  • Cairo, Egypt
View GitHub Profile
@kennyfrc
kennyfrc / apply_patch.py
Last active September 28, 2025 17:50
`apply_patch` implementation for use with GPT-4.1+. initially sourced from the openai cookbook, extended by using the rust `apply_patch` implementation in `openai/codex` as inspiration (it has better feedback with A,M,D updates)
#!/usr/bin/env python3
from enum import Enum
from typing import Optional
from pydantic import BaseModel, Field
class ActionType(str, Enum):
ADD = "add"
DELETE = "delete"
@flokli
flokli / talos_nocloud_cidata.bash
Created March 25, 2022 16:31
Install talos nocloud and add CIDATA with config
#!/usr/bin/env bash
# This assumes a booted rescue system, copies the installation media to the destination disk
# it'll then add a CIDATA partition to the end of the disk, and prepare it with user-data
# used in a terraform ssh provisioner, but extracted to here for now.
destination_disk=/dev/nvme0n1
talos_version=v0.14.3
wipefs -af $destination_disk
wget https://github.com/talos-systems/talos/releases/download/${talos_version}/nocloud-amd64.raw.xz
@ohanhi
ohanhi / frp.md
Last active September 23, 2025 16:12
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note