diff --git a/doom/.config/doom/init.el b/doom/.config/doom/init.el index 8fb7166..a50bb99 100644 --- a/doom/.config/doom/init.el +++ b/doom/.config/doom/init.el @@ -180,7 +180,7 @@ hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW ;;terra ; Earth and Moon in alignment for performance. ;;web ; the tubes ;;yaml ; JSON, but readable - ;;zig ; C, but simpler + zig ; C, but simpler (verilog +lsp) :email diff --git a/opencode/.config/opencode-team/opencode.jsonc b/opencode/.config/opencode-team/opencode.jsonc new file mode 100644 index 0000000..5ba0d07 --- /dev/null +++ b/opencode/.config/opencode-team/opencode.jsonc @@ -0,0 +1,28 @@ +{ + "$schema": "https://opencode.ai/config.json", + "model": "deepseek-v4-pro", + "autoupdate": true, + + // Activating the full team layer ONLY inside this profile directory + "plugin": [ + "oh-my-openagent", + "opencode-canvas" + ], + + "permission": { + "read": { + "**/build/**": "deny", + "**/.verilator/**": "deny", + "**/*.vcd": "deny", + "**/*.fst": "deny", + "**/*.o": "deny", + "**/*.a": "deny", + "*": "allow" + }, + "edit": { + "**/build/**": "deny", + "*": "allow" + }, + "bash": "allow" + } +} diff --git a/opencode/.config/opencode/oh-my-openagent.jsonc b/opencode/.config/opencode/oh-my-openagent.jsonc new file mode 100644 index 0000000..528e48d --- /dev/null +++ b/opencode/.config/opencode/oh-my-openagent.jsonc @@ -0,0 +1,28 @@ +{ + "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/oh-my-opencode.schema.json", + + "agents": { + // Sisyphus and Hephaestus manage your deep pipeline logic via the Pro reasoning engine + "sisyphus": { + "model": "opencode-go/deepseek-v4-pro" + }, + "hephaestus": { + "model": "opencode-go/deepseek-v4-pro" + }, + // Prometheus handles state machine planning via long-context Kimi + "prometheus": { + "model": "opencode-go/kimi-k2.6" + }, + // Atlas coordinates execution steps + "atlas": { + "model": "opencode-go/qwen3.7-max" + }, + // Explore and Librarian handle file-scraping using the high-volume Flash engine + "explore": { + "model": "opencode-go/deepseek-v4-flash" + }, + "librarian": { + "model": "opencode-go/deepseek-v4-flash" + } + } +} diff --git a/opencode/.config/opencode/opencode.jsonc b/opencode/.config/opencode/opencode.jsonc new file mode 100644 index 0000000..a6e7340 --- /dev/null +++ b/opencode/.config/opencode/opencode.jsonc @@ -0,0 +1,23 @@ +{ + "$schema": "https://opencode.ai/config.json", + "autoupdate": true, + + "plugin": [], + + "permission": { + "read": { + "**/build/**": "deny", + "**/.verilator/**": "deny", + "**/*.vcd": "deny", + "**/*.fst": "deny", + "**/*.o": "deny", + "**/*.a": "deny", + "*": "allow" + }, + "edit": { + "**/build/**": "deny", + "*": "allow" + }, + "bash": "allow" + } +} diff --git a/zsh/.zshrc b/zsh/.zshrc index fb093ae..02c08b7 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -124,3 +124,29 @@ upload() { } xhost +si:localuser:$(whoami) &> /dev/null + +block() { + if [ "$1" = "website" ]; then + # Default behavior if you literally type 'block website' + echo "Blocking default IP (157.240.22.35) for 1 hour..." + sudo firewall-cmd --add-rich-rule='rule family="ipv4" destination address="157.240.22.35" drop' --timeout=60m + elif [ -n "$1" ]; then + # Advanced behavior: Resolves the IP of whatever domain you type + echo "Looking up IP for $1..." + local ip=$(getent ahosts "$1" | awk '{print $1}' | head -n 1) + + if [ -n "$ip" ]; then + echo "Blocking $1 ($ip) for 1 hour..." + sudo firewall-cmd --add-rich-rule="rule family=\"ipv4\" destination address=\"$ip\" drop" --timeout=60m + else + echo "Error: Could not resolve IP for $1" + fi + else + echo "Usage: block [website_domain] or 'block website'" + fi +} + +alias ssh="TERM=xterm-256color ssh" + +alias opencode="opencode" +alias opencode-team="OPENCODE_CONFIG_DIR=~/.config/opencode-team opencode"