This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| /** | |
| * Reproduces the RivetKit 2.3.10 Workflow tab decode failure without an actor, | |
| * network connection, or application data. | |
| * | |
| * The inspector protocol requires raw BARE workflow-history bytes. The failing | |
| * runtime path instead sends the CBOR form of jsonStringifyCompat's | |
| * ["$ArrayBuffer", "<base64>"] value. The frontend then reads those CBOR bytes | |
| * as BARE and reports "BareError: (byte:3) invalid UTF-8 string". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Amp Agent Mode Plugin system prompts | |
| Extracted on 2026-08-14 from the five first-party plugin sources listed under **Agent Mode Plugins** at https://ampcode.com/modes. | |
| The text below is the decoded JavaScript template-literal value passed to each agent's `instructions` field. The extraction removes TypeScript delimiters and escape characters; it does not summarize or normalize the prompt text. Claude Fable 5 registers five reasoning-effort modes, but all five use the same `FABLE_AGENT_PROMPT` value shown here. | |
| ## Exact duplicates | |
| - Inkling and GLM 5.2 are byte-for-byte identical. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [user] | |
| name = "Feifan Zhou" | |
| email = "feifan@me.com" | |
| # http://haacked.com/archive/2014/07/28/github-flow-aliases/ | |
| # https://gist.github.com/mwhite/6887990 | |
| # https://stackoverflow.com/a/5188364/472768 | |
| [alias] | |
| branches = branch --sort=-committerdate | |
| count = count-objects -vH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "global": { | |
| "check_for_updates_on_startup": false, | |
| "show_in_menu_bar": false, | |
| "show_profile_name_in_menu_bar": false | |
| }, | |
| "profiles": [ | |
| { | |
| "complex_modifications": { | |
| "parameters": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Inspired by Linux alt-drag or Better Touch Tools move/resize functionality | |
| -- from https://gist.github.com/kizzx2/e542fa74b80b7563045a#gistcomment-2023593 | |
| -- Command-Ctrl-move: move window under mouse | |
| -- Command-Control-Shift-move: resize window under mouse | |
| function get_window_under_mouse() | |
| local my_pos = hs.geometry.new(hs.mouse.getAbsolutePosition()) | |
| local my_screen = hs.mouse.getCurrentScreen() | |
| return hs.fnutils.find(hs.window.orderedWindows(), function(w) | |
| return my_screen == w:screen() and | |
| w:isStandard() and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export EDITOR=nano | |
| export SHELL=/bin/zsh | |
| # https://www.cyberciti.biz/faq/unix-linux-bash-history-display-date-time/ | |
| export HISTTIMEFORMAT="%d/%m/%y %T " | |
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| for file in ~/.{path,rbenvrc,bash_prompt,exports,aliases,functions,extra,stripe_profile}; do | |
| [ -r "$file" ] && [ -f "$file" ] && source "$file"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "breadcrumbs.enabled": true, | |
| "editor.acceptSuggestionOnEnter": "off", | |
| "editor.fontLigatures": true, | |
| "editor.formatOnSave": true, | |
| "editor.tabSize": 2, | |
| "eslint.packageManager": "yarn", | |
| "files.defaultLanguage": "markdown", | |
| "files.exclude": { | |
| "**/.git": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Shell prompt based on the Solarized Dark theme. | |
| # Screenshot: http://i.imgur.com/EkEtphC.png | |
| # Heavily inspired by @necolas’s prompt: https://github.com/necolas/dotfiles | |
| # iTerm → Profiles → Text → use 13pt Fira Code with 1.1 vertical spacing. | |
| if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then | |
| export TERM='gnome-256color'; | |
| elif infocmp xterm-256color >/dev/null 2>&1; then | |
| export TERM='xterm-256color'; | |
| fi; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # http://haacked.com/archive/2014/07/28/github-flow-aliases/ | |
| # https://gist.github.com/mwhite/6887990 | |
| # https://stackoverflow.com/a/5188364/472768 | |
| [alias] | |
| branches = branch --sort=-committerdate | |
| count = count-objects -vH | |
| co = checkout | |
| col = checkout @{-1} | |
| com = checkout master | |
| newbr = checkout -b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Usage: dim <number 0 – 100> | |
| # http://chopmo.dk/2017/01/12/control-monitor-brightness-from-osx.html | |
| cd ~/Developer | |
| git clone https://github.com/kfix/ddcctl.git && cd ddcctl | |
| make install | |
| echo -e "#!/bin/bash\nddcctl -d 1 -b $1 && ddcctl -d 2 -b $1" > /usr/local/bin/dim | |
| chmod +x /usr/local/bin/dim |
NewerOlder