Skip to content

Instantly share code, notes, and snippets.

View pythoninthegrass's full-sized avatar

pythoninthegrass

View GitHub Profile
@pythoninthegrass
pythoninthegrass / scratch.go
Last active May 14, 2025 02:38
llm generated iris rest server to make gql requests
package main
import (
"context"
"fmt"
"net/http"
"strings"
"github.com/kataras/iris/v12"
"github.com/thepolyglotdeveloper/graphql"
@pythoninthegrass
pythoninthegrass / Ubuntu_Vagrant_libvirt.md
Created May 12, 2025 16:57 — forked from PaulNeumann/Ubuntu_Vagrant_libvirt.md
How to Install the Vagrant libvirt Provider on Ubuntu 22.04.2 LTS Desktop or Server

How to Install the Vagrant libvirt Provider on Ubuntu 22.04.2 LTS (and above) Desktop or Server

This document describes how to install the Vagrant libvirt provider on Ubuntu 22.04.2 LTS Desktop or Server. Much of the content is based on a blog post by Philippe Vanhaesendonck of Oracle Corp. describing how to set up the Vagrant libvirt provider on Oracle Linux.

All of the commands shown should be run in a terminal window or SSH session.

Before You Start

Verify That Your CPU Supports Hardware Virtualization

@pythoninthegrass
pythoninthegrass / preseed.yml
Created April 18, 2025 15:43
lxd init preseed config
config:
core.https_address: '[::]:8443'
networks:
- config:
ipv4.address: auto
ipv6.address: auto
description: ""
name: lxdbr0
type: ""
project: default
@pythoninthegrass
pythoninthegrass / distrobox.conf
Created March 30, 2025 18:25
Distrobox config ~/.config/distrobox/distrobox.conf
container_always_pull="1"
container_generate_entry=0
container_manager="docker"
container_image_default="registry.fedoraproject.org/fedora-toolbox:latest"
container_name_default="distrobox-default"
container_user_custom_home="$HOME/.config/distrobox/home"
# container_init_hook="~/.local/distrobox/a_custom_default_init_hook.sh"
# container_pre_init_hook="~/a_custom_default_pre_init_hook.sh"
non_interactive="1"
skip_workdir="0"
@pythoninthegrass
pythoninthegrass / __main__.py
Created March 20, 2025 13:58
Pulumi copilot - Azure container
import pulumi
from pulumi_azure_native import resources, containerregistry, containerinstance
from pulumi_docker import Image
# Create an Azure Resource Group
resource_group = resources.ResourceGroup('resourceGroup')
# Create an Azure Container Registry with admin user enabled
registry = containerregistry.Registry('myRegistry',
resource_group_name=resource_group.name,
@pythoninthegrass
pythoninthegrass / claude_desktop_config.json
Created March 18, 2025 19:17
known good claude mcp config for browser-use
{
"globalShortcut": "Shift+Cmd+C",
"mcpServers": {
"browser-use": {
"command": "/Users/<USER>/.local/bin/uvx",
"args": [
"mcp-browser-use"
],
"env": {
"ANONYMIZED_TELEMETRY": "false"
@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 April 15, 2025 15:17
Ghosty config (i.e., $HOME/.config/ghostty/config )
title = " "
maximize = true
working-directory = "home"
quit-after-last-window-closed = true
quick-terminal-screen = mouse
quick-terminal-autohide = true
scrollback-limit = 524288000
clipboard-read = allow
clipboard-write = allow
clipboard-paste-protection = false
@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