$ pip install click requests
$ python query_export.py --redash-url "https://app.redash.io/" --api-key ""
| javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{ | |
| default: Turndown | |
| }, { | |
| default: Readability | |
| }]) => { | |
| /* Optional vault name */ | |
| const vault = "Memex"; | |
| /* Optional folder name such as "Clippings/" */ |
| # Script to parse a CloudFormation yaml file and output a text file that lists all of its resources. | |
| # For purposes of architecture and dependency analysis. Will list type as well as Condition or DependsOn fields if they exist. | |
| # Example: python3 outputCloudFormationResources.py cloudFormation.yaml | |
| # Will output a file named resources-cloudFormation.yaml | |
| # Output for each resource: | |
| # Name: MyEC2Instance3 | |
| # Type: AWS::EC2::Instance3 | |
| # Condition: aCondition2 | |
| # DependsOn: MyEC2Instance2 |
| // Adapted from https://github.com/scottslowe script - https://github.com/scottslowe/scripts/blob/main/opml2mmd | |
| #!/usr/bin/env bash | |
| # Assign help text to variable for user later | |
| HELP="Usage: opml2mmd [SOURCE] [DEST]" | |
| NUMPARAMS="Error: Incorrect number of parameters" | |
| # If the user supplied no parameters, then provide help text | |
| if [ "$#" -eq 0 ]; then |
| // For an append to daily note in Obsidian Drafts app action | |
| // Build CSV list of Drafts tags, spaces in tags changed to '_' | |
| let tags = draft.tags; | |
| let noteTags = ""; | |
| for (let i = 0; i < tags.length; i++) { | |
| let nstag = tags[i].replaceAll( ' ', '_'); | |
| noteTags += " #" + nstag + ","; | |
| } |
| javascript:(function() { | |
| /* My modified version to only copy the selection as markdown block quotes */ | |
| function copyToClipboard(text) { | |
| if (window.clipboardData && window.clipboardData.setData) { | |
| /*IE specific code path to prevent textarea being shown while dialog is visible.*/ | |
| return clipboardData.setData("Text", text); | |
| } else if (document.queryCommandSupported && document.queryCommandSupported("copy")) { | |
| var textarea = document.createElement("textarea"); |
| /* | |
| Ver 0.9.0 Send Draft.app draft to Obsidian with YAML front matter. 2021-08-08 | |
| Ver 0.9.1 Correct a copy/paste error causing runtime exception. 2021-08-09 | |
| Ver 0.9.2 Switch YAML date to draft creation date. Clarify comments 2021-08-12 | |
| Ver 1.0.0 Restructure to turn all YAML, except the tags, user configurable | |
| text. Makes configuration of custom YAML possible. 2021-08-18 | |
| Ver 1.0.1 Add "inbox" folder option and createSilently option. 2021-08-21 | |
| From a direction pointed to in Ulysses sheet w/ tags action. | |
| Thanks to Olivier Spinnler (@OlivierPS) and others. |