Skip to content

Instantly share code, notes, and snippets.

View akunzai's full-sized avatar
🌧️

Charley Wu akunzai

🌧️
View GitHub Profile
@akunzai
akunzai / starship.toml
Last active June 11, 2026 04:48
My starship config
"$schema" = 'https://starship.rs/config-schema.json'
format = """
[](red)\
$os\
$username\
$hostname\
[](bg:peach fg:red)\
$directory\
[](bg:yellow fg:peach)\
@akunzai
akunzai / opencode.json
Last active June 11, 2026 04:48
My OpenCode settings
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["context-mode"],
"provider": {
"ollama": {
"npm": "@ai-sdk/openai-compatible",
"name": "Ollama (local)",
"options": {
"baseURL": "http://localhost:11434/v1"
},
@akunzai
akunzai / agy_inspect.sh
Last active June 13, 2026 00:29
My Antigravity CLI settings
#!/usr/bin/env bash
# Inspect the running Antigravity CLI (agy) local language-server endpoint and print
# its raw JSON response. Ports are random per launch, so discover them dynamically.
#
# Usage:
# ./agy_inspect.sh # GetUserStatus (default)
# ./agy_inspect.sh GetUnleashData # any LanguageServerService method
set -eu
show_help() {
@akunzai
akunzai / settings.json
Last active June 13, 2026 01:29
My Claude Code settings
{
"agentPushNotifEnabled": true,
"attribution": {
"commit": "",
"pr": ""
},
"enabledPlugins": {
"claude-code-setup@claude-plugins-official": true,
"claude-md-management@claude-plugins-official": true,
"cloudflare@claude-plugins-official": false,
@akunzai
akunzai / nordpass2apple.py
Created October 13, 2025 14:26
Convert NordPass-exported CSV to Apple Passwords-importable CSV
#!/usr/bin/env python3
"""
Convert NordPass-exported CSV to Apple Passwords-importable CSV.
Usage:
uv run nordpass2apple.py nordpass.csv > apple.csv
uv run nordpass2apple.py --type note nordpass.csv > apple.csv
"""
import argparse
@akunzai
akunzai / config.ghostty
Last active June 9, 2026 01:02
My Ghostty config
# Theme & Visuals
theme = TokyoNight
background-opacity = 0.9
background-blur = 20
macos-titlebar-style = transparent
window-save-state = always
# Font Configuration
font-family = "JetBrainsMono Nerd Font Mono"
font-family = "JetBrainsMono Mono"
@akunzai
akunzai / loki_json_to_csv
Last active June 9, 2025 10:01
Convert Loki logs JSON to CSV format
#!/bin/bash
# Script to convert Loki logs JSON to CSV format
# Usage: ./loki_json_to_csv.sh input.json output.csv
# Check if jq is installed
if ! command -v jq &> /dev/null; then
echo "Error: jq is not installed. Please install it first."
echo "On macOS: brew install jq"
echo "On Ubuntu/Debian: sudo apt-get install jq"
@akunzai
akunzai / Test-TlsCiphers.ps1
Last active May 19, 2025 18:48
Uses OpenSSL to detect remote server support cipher suites
#Requires -Version 5.1
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[string]$RemoteAddress,
[Parameter(Mandatory=$false)]
[string]$OpenSslPath = 'openssl',
@akunzai
akunzai / README.md
Last active June 11, 2026 04:49
readme.com exporter

ReadMe.com 文件匯出工具

這是一個 Bash 腳本,用於從 ReadMe.com 匯出指定專案版本的文件內容,並將其轉換為本地儲存的 Markdown 檔案及圖片

  • 依分類匯出所有文件。
  • 下載文件中引用的圖片(包含 ReadMe 特有的 [block:image] 格式及標準 Markdown 圖片語法)。
  • 將圖片儲存在各分類對應的 images 子目錄下。
  • 自動更新 Markdown 文件中的圖片連結為相對路徑。
  • 支援透過 .env 檔案或環境變數設定 API 金鑰和專案版本。
  • 可選擇是否匯出隱藏文件。
@akunzai
akunzai / cleanup-podman-images.sh
Created April 1, 2025 07:34
Clean up old Podman images while keeping the newest version of each image
#!/bin/sh
# Show usage information
show_help() {
cat << EOF
Usage: $(basename "$0") [OPTIONS] [IMAGE_PATTERN]
Clean up old Podman images while keeping the newest version of each image.
Options:
--dryrun Show what would be removed without actually removing anything