Skip to content

Instantly share code, notes, and snippets.

View akunzai's full-sized avatar

Charley Wu akunzai

View GitHub Profile
@akunzai
akunzai / README.md
Last active November 4, 2026 03:48
My Herdr App settings

Herdr App Configuration & Dotfiles Setup

A cross-platform configuration suite and synchronization manager for Herdr App (the native GUI desktop application for herdr-core).

This setup automates managing your ~/.config/herdr-app across multiple machines (macOS, Linux, and Windows) using cloud storage (e.g. Google Drive, iCloud) or a centralized dotfiles repository.


Features

@akunzai
akunzai / uninstall-muse-code.ps1
Last active October 14, 2026 01:17
Muse Code uninstaller
<#
.SYNOPSIS
Removes Muse Code on Windows.
.DESCRIPTION
The installer writes the launcher and binaries to %LOCALAPPDATA%\Programs\muse
(or $env:MUSE_INSTALL_DIR, or ~/.local/bin) and adds that directory to User PATH.
The app keeps login credentials, settings, and session data under ~/.config/muse,
~/.local/share/muse, ~/.local/state/muse, and ~/.cache/muse.
@akunzai
akunzai / uninstall-cursor-cli.ps1
Last active October 14, 2026 01:14
Cursor CLI uninstaller
<#
.SYNOPSIS
Removes the Cursor CLI on Windows installed by Cursor's install script.
.DESCRIPTION
That installer puts the package in %LOCALAPPDATA%\cursor-agent (containing
agent.cmd, cursor-agent.cmd, and version runtimes) and adds that directory
to the User PATH environment variable. When executed, it also generates
a compile cache in %LOCALAPPDATA%\cursor-compile-cache.
@akunzai
akunzai / README.md
Last active November 1, 2026 04:45
Setup OpenSSH Server on Windows

Windows OpenSSH Server Setup & Configuration (setup-openssh-server.ps1)

Automated installation, configuration, ACL permission fixing, and public key deployment for OpenSSH Server on Windows.

Supports Windows 10 / 11 and Windows Server 2019 / 2022 / 2025.


Features

@akunzai
akunzai / README.md
Last active October 22, 2026 02:12
My Shared Codex CLI profile

Shared Codex CLI profile

Install shared.config.toml next to the machine-local ~/.codex/config.toml. Start it with codex --profile shared, or cx after loading the Unix or PowerShell shortcut. Plain codex still uses your original configuration.

Requires Codex 0.134.0 or later. Profiles are separate files, not legacy [profiles.shared] tables or a top-level profile selector.

macOS / Unix install or update

@akunzai
akunzai / .bashrc
Last active September 22, 2026 03:49
My Bash profile
# ~/.bashrc: executed by bash(1) for non-login interactive shells.
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# Prevent circular or duplicate execution in the same subshell
if [ -n "$__BASHRC_SOURCING" ]; then
@akunzai
akunzai / settings.json
Last active August 22, 2026 07:20
My GitHub Copilot CLI settings
{
"footer": {
"showAgent": true,
"showAiUsed": true,
"showBranch": true,
"showCiStatus": true,
"showCodeChanges": false,
"showContextWindow": true,
"showCustom": true,
"showDirectory": true,
@akunzai
akunzai / README.md
Last active November 3, 2026 08:10
My Herdr TUI settings

Herdr config

Flat layout (gists have no directories). Copy each file to its target path.

File Target Notes
config.toml ~/.config/herdr/config.toml Herdr main config: keybindings, theme (catppuccin), sidebar. [ui.sidebar.agents] holds the $cache color rules for cache-hit, recolored with catppuccin tones (the plugin defaults are unreadable on dark themes).
plugins.json ~/.config/herdr/plugins.json Installed plugins snapshot (managed by herdr plugin; contains machine-specific absolute paths, for reference only).
config.json ~/.config/herdr/plugins/config/cache-hit/config.json cache-hit plugin options: show hit % for all agents, hide the ⇣ read-token count.
@akunzai
akunzai / cleanup-dory.sh
Last active August 5, 2026 03:43
Clean up leftover files after uninstalling Dory (github.com/Augani/dory) for macOS
#!/usr/bin/env bash
# Removes leftover files for a Dory (https://github.com/Augani/dory) uninstall.
# Assumes /Applications/Dory.app, ~/.dory, /etc/resolver/dory.local, and the pf
# anchor are already gone (i.e. `dory uninstall` / manual app removal was done).
#
# Usage:
# cleanup-dory.sh # dry run: list what would be removed
# cleanup-dory.sh --yes # actually remove everything, no prompt
# cleanup-dory.sh --apply # actually remove everything, with a confirm prompt
@akunzai
akunzai / README.md
Last active July 4, 2026 05:19
macOS Aerial Videos Cleanup Tool

macOS Aerial Videos Cleanup Tool

This script identifies and removes downloaded macOS Aerial wallpaper and screensaver video files (.mov) that are not currently in use, helping you reclaim tens of gigabytes of disk space.

Since macOS Sonoma/Sequoia, the settings for Aerial wallpapers and screensavers are unified. The script parses your active configuration to determine which videos belong to your active selections (whether they are individual videos, specific subcategories, or entire shuffle categories) and safely cleans up the rest.

🚀 How it Works

  1. Config Analysis: Reads ~/Library/Application Support/com.apple.wallpaper/Store/Index.plist to locate active screensaver/wallpaper selections.
  2. Asset Mapping: Loads the local manifest ~/Library/Application Support/com.apple.wallpaper/aerials/manifest/entries.json to map configured selection IDs to specific video filenames.