Hello, I assume you found this from my talk at BeerCityCode 2018. If so, great. If not, also great. It's the internet, we can all be friends. -- @stahnma
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
| #!/usr/bin/env bash | |
| source creds | |
| # Fetch an Auth0 Management API token using client credentials | |
| auth0_get_token() { | |
| : "${AUTH0_DOMAIN:?Need AUTH0_DOMAIN (e.g. your-tenant.us.auth0.com)}" | |
| : "${AUTH0_CLIENT_ID:?Need AUTH0_CLIENT_ID}" | |
| : "${AUTH0_CLIENT_SECRET:?Need AUTH0_CLIENT_SECRET}" |
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
| package main | |
| import ( | |
| "bufio" | |
| "bytes" | |
| "compress/gzip" | |
| "context" | |
| "encoding/json" | |
| "flag" | |
| "fmt" |
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
| data_dir: ./data | |
| sources: | |
| stdin: | |
| type: stdin | |
| decoding: | |
| codec: json | |
| mode: multiline | |
| # json_files: | |
| # type: file |
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
| data_dir: ./data | |
| sources: | |
| stdin: | |
| type: stdin | |
| decoding: | |
| codec: json | |
| mode: multiline | |
| # json_files: | |
| # type: file |
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| if ! command -v aws &> /dev/null; then | |
| echo "Error: The 'aws' CLI is not installed or not in your PATH." >&2 | |
| exit 3 | |
| fi |
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
| 2024-11-04 17:11:27-06 floxbox01 Installer[59796]: @(#)PROGRAM:Install PROJECT:Install-1000 | |
| 2024-11-04 17:11:27-06 floxbox01 Installer[59796]: @(#)PROGRAM:Installer PROJECT:Installer-1210 | |
| 2024-11-04 17:11:27-06 floxbox01 Installer[59796]: Hardware: Mac14,9 @ 0 MHz (x 12), 16384 MB RAM | |
| 2024-11-04 17:11:27-06 floxbox01 Installer[59796]: Running OS Build: macOS 14.6.1 (23G93) | |
| 2024-11-04 17:11:27-06 floxbox01 Installer[59796]: Env: PKG_CONFIG_PATH=/Users/stahnma/.cache/flox/run/stahnma/default.5d13975f/lib/pkgconfig:/Users/stahnma/.cache/flox/run/stahnma/default.5d13975f/share/pkgconfig | |
| 2024-11-04 17:11:27-06 floxbox01 Installer[59796]: Env: PWD=/Users/stahnma | |
| 2024-11-04 17:11:27-06 floxbox01 Installer[59796]: Env: _process_compose=/nix/store/sx88hhp63s7vvhb7i0bkzk1zk65km08w-process-compose-1.9.0/bin/process-compose | |
| 2024-11-04 17:11:27-06 floxbox01 Installer[59796]: Env: _tcsh_home=/nix/store/bq3kgjbilv466f37plh5qyaa1ly3pgxz-flox-activation-scripts/activate.d/tcsh_home | |
| 2024-11-04 17:11:27-06 floxbox01 Installer |
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
| { | |
| "event": "catalog", | |
| "type": "service-request", | |
| "timestamp": "2024-07-22T04:54:26.512255", | |
| "uuid": "4c766f38-be8a-436e-9dac-7f795182472a", | |
| "service_properties": { | |
| "hostname": "ip-172-31-8-95.ec2.internal", | |
| "version": "0.1.0+186-c0dc18f", | |
| "instance_uuid": "dfa0d38a-6d8a-4b97-a4c8-63ca596f2351" | |
| }, |
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 | |
| osascript -e 'tell application "System Events" to tell process "zoom.us"' \ | |
| -e 'set frontmost to true' \ | |
| -e 'if windows is not {} then perform action "AXRaise" of item 1 of windows' \ | |
| -e 'end tell' |
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
| from alpine | |
| run apk update && apk add cmake boost-dev make curl git curl-dev gcc g++ yaml-cpp-dev boost-static | |
| run mkdir /workspace && cd workspace && \ | |
| git clone https://github.com/puppetlabs/leatherman | |
| run sed -i -e 's/sys\/poll/poll/' /usr/include/boost/asio/detail/socket_types.hpp | |
| run cd /workspace/leatherman; mkdir build; cd build; cmake -DBOOST_STATIC=OFF -DCMAKE_VERBOSE_MAKEFILE=ON ..; make -j1 ; make install | |
| copy Dockerfile /Dockerfile | |
| cmd ["/bin/sh"] |
NewerOlder