Skip to content

Instantly share code, notes, and snippets.

View ctompkinson's full-sized avatar

Chris Tompkinson ctompkinson

View GitHub Profile
;; 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 }
@ctompkinson
ctompkinson / invoking_lambdas.md
Last active March 26, 2018 09:24
Running and testing go lambdas locally

Running and testing go lambdas locally

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