DO NOT USE VSCODE terminal and make sure uname -m returns arm64
- First Install Xcode command line tool
xcode-select --install- Create and change
/optdirectories owner
| /* | |
| * credit to Dhrumil Shah (@wandcrafting) and Robert Haisfield (@RobertHaisfield) | |
| * for the original concept which was part of their RoamGames submission | |
| * and can be found at: https://www.figma.com/file/5shwLdUCHxSaPNEO7pazbe/ | |
| * | |
| */ | |
| /* ======= OPTIONS ======== */ | |
| /* note: if you change these, reload the page to see the effect */ |
| # *** WARNING *** | |
| # This gist is no longer maintained | |
| # It has been replaced by aws-assume-role-lib in PyPI | |
| # Documentation at https://github.com/benkehoe/aws-assume-role-lib | |
| # It is still a single-file library, you can find the stable version here: | |
| # https://raw.githubusercontent.com/benkehoe/aws-assume-role-lib/stable/aws_assume_role_lib/aws_assume_role_lib.py | |
| # (link also available in the docs) | |
| # Copyright 2020 Ben Kehoe | |
| # |
| #!/bin/bash | |
| GRAPH_NAME=tlehman | |
| function roam_api_get_blocks_containing_string() { | |
| curl -X POST "https://api.roamresearch.com/api/graph/$GRAPH_NAME/q" --location-trusted \ | |
| -H "accept: application/json" \ | |
| -H "Authorization: Bearer $ROAM_API_KEY" \ | |
| -H "Content-Type: application/json" \ | |
| -d "{\"query\" : \"[:find ?block-str :in \$ ?search-string :where [?b :block/uid ?block-uid] [?b :block/string ?block-str] [(clojure.string/includes? ?block-str ?search-string)]]\", \"args\": [\"$1\"]}" |