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
| Set up these as real Codex lifecycle hooks by following the official documentation: | |
| https://learn.chatgpt.com/docs/hooks | |
| Important: use ~/.codex/hooks.json and a PreToolUse command hook. Do not implement this only as a ~/.codex/rules/*.rules execution-policy file. | |
| First inspect any existing hooks and preserve them. Then: | |
| 1. Create or merge ~/.codex/hooks.json with a PreToolUse matcher for Bash. | |
| 2. Create ~/.codex/hooks/destructive_commands.py. | |
| 3. The script must read the hook JSON payload from stdin and inspect tool_input.command. |
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
| /* Script: Column Search with Descriptions | |
| ** Author: Timothy Klenke | |
| ** Date: 2014-02-27 | |
| ** License: Public domain, unlicenced | |
| **/ | |
| Select | |
| --** Schema Name | |
| --sch.name As 'Schema', | |
| --** TableName |
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 | |
| export COLOR_CONTEXT=$LIGHT_CYAN | |
| export COLOR_PROJECT=$LIGHT_PURPLE | |
| export COLOR_DATE=$LIGHT_GREEN | |
| # Force gawk to behave posixly. Comment out if you get an error about | |
| # no such option -W. | |
| AWK_OPTIONS="-W posix" | |
| if [ "$TODOTXT_PLAIN" -eq "0" ]; then | |
| awk $AWK_OPTIONS ' | |
| function highlight(colorVar, color) { |
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 | |
| export COLOR_CONTEXT=$GREEN | |
| export COLOR_PROJECT=$RED | |
| export COLOR_DATE=$LIGHT_GREEN | |
| # Force gawk to behave posixly. Comment out if you get an error about | |
| # no such option -W. | |
| # AWK_OPTIONS="-W posix" | |
| if [ "$TODOTXT_PLAIN" -eq "0" ]; then | |
| awk $AWK_OPTIONS ' | |
| function highlight(colorVar, color) { |