I hereby claim:
- I am johnpena on github.
- I am johncorrelated (https://keybase.io/johncorrelated) on keybase.
- I have a public key ASAiD-xfw_8hvVbGeFdjM6PP1zJ1LEi0J21ev2vjG12ZdQo
To claim this, I am signing this object:
| tell application "iTerm" | |
| activate | |
| -- Check if iTerm is running and has at least one window | |
| if (count of windows) is greater than 0 then | |
| -- iTerm is running and has at least one window, so create a new tab | |
| tell current window | |
| create tab with default profile | |
| end tell | |
| else | |
| -- iTerm is running but has no windows, so create a new window |
| #!/usr/bin/env bash | |
| function kvset { | |
| curl -s "localhost:4000/set?$1=$2" > /dev/null | |
| } | |
| function kvget { | |
| url="localhost:4000/get?key=$1" | |
| curl -s "$url" | jq '.value?' | |
| } |
| package main | |
| import ( | |
| "encoding/json" | |
| "log" | |
| "net/http" | |
| ) | |
| const port = ":4000" |
| CREATE OR REPLACE FUNCTION humanize_time_span(ts timestamp) RETURNS varchar AS | |
| ' | |
| SELECT | |
| CASE | |
| WHEN (now() - ts::timestamp)::INT < 60 THEN 'Within the last minute' | |
| WHEN ((now() - ts::timestamp)::INT) / 60 < 60 THEN ((now() - ts::TIMESTAMPTZ)::INT / 60)::INT || ' Minutes ago' | |
| WHEN (now() - ts::TIMESTAMPTZ)::INT / (60 * 60) < 24 THEN ((now() - ts::TIMESTAMPTZ)::INT / (60 * 60))::INT || ' Hours ago' | |
| ELSE ((now() - ts::TIMESTAMPTZ)::INT / (60 * 60 * 24))::INT || ' Days ago' | |
| END | |
| ' |
| package observability | |
| import ( | |
| "context" | |
| "fmt" | |
| "github.com/correlatedlabs/pkg/go-common/env" | |
| "github.com/correlatedlabs/pkg/go-common/util" | |
| log "github.com/sirupsen/logrus" | |
| "go.opentelemetry.io/otel" |
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "math/rand" | |
| "net/http" | |
| "net/http/httputil" | |
| "net/url" | |
| "strings" |
| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o nounset | |
| set -o pipefail | |
| if [[ "${TRACE-0}" == "1" ]]; then | |
| set -o xtrace | |
| fi |
| // filepath server/server.go | |
| package server | |
| type Server struct {} | |
| // filepath server/foo/subserver.go | |
| package foo | |
| type subserver struct { | |
| server.Server |
I hereby claim:
To claim this, I am signing this object: