To run the lambda locally
_LAMBDA_SERVER_PORT=8001 go run wavefront_handler.go
To invoke the lambda
| set -o pipefail | |
| set -o errtrace | |
| set -o nounset | |
| set -o errexit | |
| set -a | |
| # Scratch mount is the device which will be mounted on /mnt | |
| # and generally used for logs, core dumps etc. | |
| if ! $(mount | grep -q /mnt) ; then | |
| # Detected NVME drives |
| ;; Repeatidly press for AutoHotKey | |
| ;; Usage: Update $^o to your key | |
| ;; Update o down / up to your key | |
| #MaxThreadsPerHotkey, 2 | |
| looping = 0 | |
| $^o:: | |
| looping := !looping | |
| if (!looping) { Return } |