Skip to content

Instantly share code, notes, and snippets.

View pythoninthegrass's full-sized avatar

pythoninthegrass

View GitHub Profile
@pythoninthegrass
pythoninthegrass / .aider.conf.yml
Created February 23, 2025 04:04
My working aider config
# https://aider.chat/docs/config/aider_conf.html
## Specify the model to use for the main chat
model: o3-mini
## Set the reasoning_effort API parameter (default: not set)
reasoning-effort: high
## Specify the Anthropic API key
anthropic-api-key: sk-ant-api03-<SNIP>
@pythoninthegrass
pythoninthegrass / proxy.py
Created February 12, 2025 01:32
Proxy requests from a free list at https://api.proxyscrape.com
#!/usr/bin/env python
import json
import requests
from pathlib import Path
from requests.exceptions import RequestException
from urllib.parse import urlencode
def get_my_ip():
@pythoninthegrass
pythoninthegrass / config
Last active January 7, 2025 01:52
Ghosty config (i.e., $HOME/.config/ghostty/config )
title = " "
macos-titlebar-proxy-icon = "hidden"
macos-icon ="custom-style"
macos-icon-frame = "beige"
macos-icon-screen-color = 1f1d45
font-size = 14
font-family = "Hack Nerd Font Mono"
theme = "AdventureTime"
shell-integration = "bash"
working-directory = "home"
@pythoninthegrass
pythoninthegrass / dns_bench.csv
Created December 24, 2024 00:54
DNS benchmark via https://dnsspeedtest.online on GPD Win Mini 2 (2023)
rank ip dns_provider min median average max
1 1.1.1.1, 1.0.0.1 cloudflare 65.00 66.00 66.00 67.00
2 208.67.222.222, 208.67.220.220 opendns 68.00 72.00 73.70 101.00
3 9.9.9.9, 149.112.112.112 quad9 77.00 78.50 80.10 87.00
4 8.8.8.8, 8.8.4.4 google 87.00 93.00 96.60 113.00
[env]
TERM = "xterm-256color"
[terminal.shell]
program = "/usr/bin/bash"
args = ["-l", "-c", "zellij"]
[window]
dimensions.columns = 100
dimensions.lines = 34
@pythoninthegrass
pythoninthegrass / macos_terraform.md
Last active December 10, 2024 03:31 — forked from gwarf/MacOSX_terraform.md
Using terraform in macOS to manage KVM-backed VMs.

Using Terraform on macOS to manage KVM-backed VMs

Installing

Terraform

brew install terraform
@pythoninthegrass
pythoninthegrass / install.sh
Last active November 26, 2024 00:00
(Un)install pw cli password manager
#!/usr/bin/env bash
set -e
BASE_URL="https://github.com"
ORG="sschmid"
REPO="pw-terminal-password-manager"
BIN_NAME="pw"
SUBDIR="src"
@pythoninthegrass
pythoninthegrass / vector.yml
Created November 19, 2024 21:50
Basic macOS compatible Vector telemetry w/redis + prometheus
sources:
docker:
type: docker_logs
auto_partial_merge: true
docker_host: unix:///var/run/docker.sock
exclude_containers:
- exclude_
partial_event_marker_field: _partial
retry_backoff_secs: 2
@pythoninthegrass
pythoninthegrass / cleanup.sh
Last active November 13, 2024 19:16
Cleanup ubuntu servers (non)interactively (cf. no disk space left)
#!/usr/bin/env bash
set -euo pipefail
# $USER
[[ -n $(logname >/dev/null 2>&1) ]] && logged_in_user=$(logname) || logged_in_user=$(whoami)
# $UID
# logged_in_uid=$(id -u "${logged_in_user}")
@pythoninthegrass
pythoninthegrass / deploy.sh
Last active November 12, 2024 04:47
Spin up a kind cluster with jupyterhub
#!/usr/bin/env bash
set -e
# Clean up function
cleanup() {
echo "Cleaning up existing cluster..."
kind delete cluster
}