Skip to content

Instantly share code, notes, and snippets.

version: '3' # Specify the Docker Compose version
services:
adguardhome: # Define the service named 'adguardhome'
image: adguard/adguardhome # Use the 'adguard/adguardhome' Docker image
container_name: adguardhome # Set the container name to 'adguardhome'
restart: unless-stopped # Restart the container automatically unless stopped manually
ports: # Map container ports to host ports
# Expose port 53 on TCP and UDP for DNS queries
- "53:53/tcp"
@jbaznik
jbaznik / glm-claude
Created October 12, 2025 05:59 — forked from RuiNelson/README.md
How to Use GLM Coding Plan and Claude Pro/Max Simultaneously with Claude Code on macOS
#!/usr/bin/env zsh
# Create a fake `security` executable
#
# This executable provides access to macOS Keychain for command-line
# apps like claude. Denying access to it, will force claude to save
# the credentials to config.json
TEMP_DIR="${HOME}/$(uuidgen).tmp"
@jbaznik
jbaznik / Remove_VMwareTools.ps1
Created September 23, 2025 05:06 — forked from broestls/Remove_VMwareTools.ps1
Force removal of VMware Tools, Program Files, and Windows Services
# This script will manually rip out all VMware Tools registry entries and files for Windows 2008-2019
# Tested for 2019, 2016, and probably works on 2012 R2 after the 2016 fixes.
# This function pulls out the common ID used for most of the VMware registry entries along with the ID
# associated with the MSI for VMware Tools.
function Get-VMwareToolsInstallerID {
foreach ($item in $(Get-ChildItem Registry::HKEY_CLASSES_ROOT\Installer\Products)) {
If ($item.GetValue('ProductName') -eq 'VMware Tools') {
return @{
reg_id = $item.PSChildName;
@jbaznik
jbaznik / 0.write-up.md
Created September 8, 2025 04:51 — forked from NotMyself/0.write-up.md
With Claude Code: Starting prompt, criticism, rewritten prompt and generated assets.

Yesterday, I posted a prompt that I had worked on for a couple hours requesting feedback. It didn't get much attention.

So I decided to use Claude to give me some feedback on it. This post documents the process I used to get what I wanted by the end of the day. I post it here for others who are looking for successful techniques to adopt or those who are just curious how other people use Claude.

The original prompt: 1.set-up-local-iis.md

This prompt was collaboratively generated with Claude. I do not have the original prompt used, but I basically told Claude it was an expert prompt engineer and to interview me about a powershell script I wanted to create a prompt to generate.

I then hand edit the prompt to add a bunch of detail that I thought was relevant.

@jbaznik
jbaznik / download_vscode_server.sh
Created September 5, 2025 12:39 — forked from cvcore/download_vscode_server.sh
Manual download vscode-server
#!/bin/bash
# This script downloads and installs a specific version of VSCode Server for Linux.
# The version is specified by the first argument to the script.
# You can find the git commit id in the output of Remote - SSH plugin in VSCode.
# The output looks like this:
# ...
# Using commit id "af28b32d7e553898b2a91af498b1fb666fdebe0c" and quality "stable" for server
# ...

Proxmox Complete Microsegmentation with OPNsense

Also posted on a blog.

Goal

The goal state for this setup is:

  • OPNsense acts as a core firewall and regulates access between all VMs.
  • All VMs share the same bridge interface to reduce setup needed for each VM.
@jbaznik
jbaznik / pve9tb4.md
Created July 25, 2025 05:57 — forked from taslabs-net/PVE9_TB4_Guide_Updated.md
Thunderbolt4 mesh network

Complete Guide (ish): Thunderbolt 4 OpenFabric Mesh on Proxmox VE 9

Acknowledgments

This guide is heavily adapted from the excellent work by @scyto.

Original gist and foundational research: https://gist.github.com/scyto/76e94832927a89d977ea989da157e9dc

The Thunderbolt hardware detection, kernel module loading, systemd configuration, and udev automation techniques are based on scyto's pioneering work on Thunderbolt networking with Proxmox. This guide adapts those proven methods for Proxmox VE 9's new native SDN OpenFabric capabilities.

@jbaznik
jbaznik / wsl-install_another_distro.md
Created July 13, 2025 15:12 — forked from artman41/wsl-install_another_distro.md
Instructions on how to install a custom distro in WSL2 (Windows SubSystem for Linux 2)

WSL install another distro

  1. Here are some default vars for the process
ISO_DIR=~/fedora;
ROOTFS_MOUNT_DIR=/mnt/contents

DISTRO_LOCATION=
@jbaznik
jbaznik / ob-gdb.el
Created June 9, 2025 05:25 — forked from Inc0n/ob-gdb.el
ob-gdb.el -- org babel support for interacting with gdb in org-mode
;;; ob-gdb.el --- Babel Functions for Gdb Evaluation -*- lexical-binding: t; -*-
;;; Commentary:
;; Org-Babel support for running gdb
;;; Code:
(require 'org-macs)
(org-assert-version)
@jbaznik
jbaznik / dired-additions.el
Created June 5, 2025 05:21 — forked from DinoChiesa/dired-additions.el
Copy or move files or directories from one dired buffer to another
(defun mode-for-buffer (&optional buffer-or-string)
"Returns the major mode associated with a buffer."
(with-current-buffer (or buffer-or-string (current-buffer))
major-mode))
(defun my-dired-copy-or-move-other-window (operation)
"Copy or move the marked files to another directory.
OPERATION is a symbol, either `COPY' or `MOVE' .
This works with files or directories."
(unless (eq major-mode 'dired-mode)