Skip to content

Instantly share code, notes, and snippets.

View unsafe9's full-sized avatar

Wooseok Han unsafe9

View GitHub Profile
@unsafe9
unsafe9 / follow-up-suggestion.md
Last active April 20, 2026 16:16
Magical Prompts

After every response in the main session (not sub-agents), you MUST call AskUserQuestion as the final action.

  • Language: Match the user's language.
  • Question: Provide a concise summary of the task completed.
  • Options: Suggest specific, actionable next steps. If none are obvious, suggest relevant new tasks (e.g., "Push changes," "Refactor related module").
  • Strict No-op Prohibition: Do NOT include options that lead to no action or termination.
  • Forbidden: "Done," "Finish," "No further action," "Wrap up," "Exit," or "Keep as is."
  • Self-Check: Every option must start with an action verb (e.g., Execute, Add, Delete, Modify, Review, Generate, Push).
  • Rationale: The user can simply send a new message to ignore suggestions; providing a "Finish" option is a UX and token waste.
  • No Ambiguity: Options must be specific enough to trigger a tool call immediately without further clarification.
  • Forbidden: "Feature request," "Report bug," "Ask a question" (These require more input).

~/.gitconfig

[user]
  name = personal_name
  email = personal_email@google.com

[includeIf "gitdir:~/workspace/work/"]
  path = ~/.gitconfig-work
@unsafe9
unsafe9 / powershell_autocomplete.md
Last active June 10, 2025 04:06
Setup autocomplete for powershell
  1. Install-Module PSReadLine
  2. open powershell profile file: notepad $PROFILE
  3. paste the code snippet below
Import-Module PSReadLine

# Shows navigable menu of all options when hitting Tab
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete

# Autocompleteion for Arrow keys
Install-Module -Name PSReadLine -force
[wsl2]
processors=12
memory=16GB
swap=6GB
localhostForwarding=true
networkingMode=mirrored
# export
git diff > changes.patch
# import
git apply --reject --whitespace=fix changes.patch
#!/bin/bash
sudo dnf update -y
# install docker
sudo dnf install -y docker
sudo systemctl enable --now docker.service
sudo usermod -aG docker $USER
# install docker-compose
@unsafe9
unsafe9 / oh-my-zsh
Last active September 10, 2024 05:35
# install zsh
sudo apt install -y zsh
# install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# install antigen
curl -L git.io/antigen > ~/.antigen.zsh
# init antigen
#!/bin/bash
# Parse command line arguments
while [ $# -gt 0 ]; do
case $1 in
#--env=*) export ENV="${1#*=}"; shift;;
--env) export ENV="$2"; shift 2;;
*) args+=("$1"); shift;;
esac
done
import os
import subprocess
from pathlib import Path
import venv
CURRENT_DIR = Path(__file__).resolve().parent
PROJECT_DIR = CURRENT_DIR.parent
VENV_NAME = "venv"
VENV_PATH = PROJECT_DIR / VENV_NAME
CONFIG_DIR = PROJECT_DIR / "config"