Before starting, check the git history to determine if this is a follow-up review:
git log --oneline -10 | grep -i "Co-Authored-By: Claude"| #cd into directory in Finder's front window | |
| function cdf() { | |
| finderPath=`osascript -e 'try | |
| tell application "Finder" to set the source_folder to (folder of the front window) as alias | |
| on error | |
| tell application "Finder" to set source_folder to insertion location as alias | |
| end try | |
| return POSIX path of source_folder as string'` | |
| cd "$finderPath" |
Swagger UI includes an inline-script
which makes it more difficult to enforce the Content-Security-Policy header.
This Gist shows a way to add an exception for Swagger UI in order to be able to enforce
the policy to an effectiv level. This is useful for example in FastAPI
where Swagger UI is added automatically for API documentation.
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: blue; icon-glyph: brain; | |
| let items = await loadItems() | |
| if (config.runsInWidget) { | |
| let widget = await createWidget(items) | |
| Script.setWidget(widget) | |
| } else if (config.runsWithSiri) { | |
| let firstItems = items.slice(0, 5) | |
| let table = createTable(firstItems) |
| #!/bin/bash | |
| # Fork of CHOCK's original tot.sh to add support for dot "0" to target | |
| # the first empty dot. | |
| # https://gist.github.com/chockenberry/d33ef5b6e6da4a3e4aa9b07b093d3c23 | |
| # | |
| # 2 Mar 2020 | |
| # + Incorporated suggestions from ShellCheck (https://www.shellcheck.net). | |
| # Thanks to Ramsey Dow. | |
| # + Changed call to `python` to `/usr/bin/python` to get Python 2, avoiding |
| #!/bin/sh | |
| basename=`basename $0` | |
| if [ -z "$*" ]; then | |
| echo "usage: ${basename} <dot> [ -o | -r | <file> | - ]" | |
| echo "" | |
| echo "options:" | |
| echo " -o open dot in window with keyboard focus" | |
| echo " -r read contents of dot" |
| /** | |
| * The onOpen function runs automatically when the Google Docs document is | |
| * opened. Use it to add custom menus to Google Docs that allow the user to run | |
| * custom scripts. For more information, please consult the following two | |
| * resources. | |
| * | |
| * Extending Google Docs developer guide: | |
| * https://developers.google.com/apps-script/guides/docs | |
| * | |
| * Document service reference documentation: |