- Start the exec server
tsx exec-server.ts &
- Run Maestro test
We need to run everything under x86 emulation, because Powershell needs opensslv1 and opensslv1 only builds under x86.
Create home directory and script to launch x86 shell:
mkdir -p $HOME/x86shell
cat <<EOF > $HOME/x86shell/.bash_profile
export PATH=$PATH:/usr/bin
| #!/usr/bin/env python3 | |
| import json | |
| import subprocess | |
| import sys | |
| from typing import List | |
| def list_users_in_groups(group_names: List[str]): | |
| groups_stack: List[str] = group_names; | |
| users: List[str] = []; |
| #!/bin/bash | |
| set -euo pipefail | |
| api_key="" # API key from Grafana Cloud | |
| metrics_user="" # Graphite username from Grafana Cloud console | |
| metrics_endpoint="" # Graphite endpoint from Grafana Cloud console | |
| now=$(date +%s) |
| spfincludelookup() { for entry in $(dig +short TXT "$@" |grep --color=never spf); do [ "${entry:0:7}" == "include" -o "${entry:0:6}" == "exists" ] && echo $entry && spfincludelookup ${entry:8}; done; } | |
| spfincludelookup "$@" |
| # | |
| # Filter input to remove content matching regexp, then output to stdout. | |
| # | |
| # Example: | |
| # cat data.sql | python3 re-filter.py "CREATE TRIGGER.*?;" | |
| # | |
| import re | |
| import sys | |
| matcher = re.compile(sys.argv[1], re.MULTILINE | re.DOTALL | re.IGNORECASE) |
| #!/bin/bash | |
| # | |
| # Print a reminder if a fetch has not been done in n hours. | |
| # | |
| # There are multiple ways you could invoke this; for example, to have it run | |
| # whenever you change directory you could do: | |
| # | |
| # cd() { command cd "$@"; ~/bin/git-fetch-reminder.sh 2>/dev/null; } | |
| # |
I hereby claim:
To claim this, I am signing this object:
| """ | |
| Takes a list of JSON files from Google Takeout's "Maps (Your Places)" and | |
| converts them into KML documents. | |
| """ | |
| import json | |
| import os | |
| import simplekml | |
| import sys | |
| import unicodedata | |
| import xml.sax.saxutils |
| #!/bin/bash | |
| # | |
| # Runs `go test -v`, parses the output and only displays errors. Also displays | |
| # a summary of tests passed/failed/skipped/etc. | |
| # | |
| set -o pipefail | |
| declare buffer= | |
| declare test_error=false |