Skip to content

Instantly share code, notes, and snippets.

View aemr3's full-sized avatar

Emre aemr3

View GitHub Profile
@aemr3
aemr3 / apply_patch.py
Last active August 29, 2025 08:58 — forked from kennyfrc/apply_patch.py
`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 -S uv run --quiet --script
# /// script
# dependencies = ["pydantic>=2.0.0"]
# ///
import os
from collections.abc import Callable
from enum import Enum
from pydantic import BaseModel, Field
@aemr3
aemr3 / rpc-tls-client.go
Created August 2, 2018 14:30 — forked from artyom/rpc-tls-client.go
Go RPC over TLS.You have to create the following keys: certs/client.crt, certs/client.key, certs/server.crt, certs/server.key. client.crt and server.crt should be signed with ca.crt, which should be concatenated to both client.crt and server.crt. It's easier to do with easy-rsa: http://openvpn.net/index.php/open-source/documentation/howto.html#pki
package main
import (
"crypto/tls"
"crypto/x509"
"log"
"net/rpc"
)
func main() {

Keybase proof

I hereby claim:

  • I am aemr3 on github.
  • I am aemr3 (https://keybase.io/aemr3) on keybase.
  • I have a public key ASDGCZwYW2Nmxq034RqhGZDfj2wF73omimTwwwdGyy-CQAo

To claim this, I am signing this object: