gpg --full-generate-keyenter the required details
| function handler(event) { | |
| var response = event.response; | |
| var uri = event.request.uri; | |
| var query = event.request.querystring; | |
| var filename = uri.split("/").pop(); | |
| // Override filename if query param is provided | |
| if (query.filename && query.filename.value) { | |
| filename = query.filename.value; |
| #!/usr/bin/env bash | |
| GHAPI="https://api.github.com" | |
| REPO="neovim/nvim-lspconfig" | |
| API_URL="$GHAPI/repos/$REPO/contents/lsp" | |
| TMP_JSON="/tmp/nvim_lspconfig_lsp_files.json" | |
| curl -s "$API_URL" -o "$TMP_JSON" |
| #!/usr/bin/env bash | |
| curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="server" sh -s - --disable-traefik | |
| helm repo add traefik https://traefik.github.io/charts | |
| helm install traefik traefik/traefik | |
| # or | |
| # helm install traefik oci://ghcr.io/traefik/helm/traefik |
| package jwk | |
| import ( | |
| "crypto/rsa" | |
| "crypto/x509" | |
| "encoding/base64" | |
| "encoding/pem" | |
| "fmt" | |
| "math/big" | |
| ) |
| func PrintStructInTable(v interface{}) { | |
| val := reflect.ValueOf(v) | |
| typ := reflect.TypeOf(v) | |
| // Ensure that the input is a struct | |
| if typ.Kind() != reflect.Struct { | |
| fmt.Println("Input is not a struct") | |
| return | |
| } |
| #!/usr/bin/env bash | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <json_file>" | |
| exit 1 | |
| fi | |
| json_file="$1" | |
| certificates=$(jq -c '.production.Certificates[]' $json_file) |
| #!/usr/bin/env bash | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <container-id>" | |
| exit 1 | |
| fi | |
| CONTAINER_ID=$1 | |
| CPU_PERCENT=$(docker stats $CONTAINER_ID --no-stream --format "{{.CPUPerc}}" | tr -d '%') |
| create or replace function gen_uuidv7() returns uuid as $$ | |
| declare | |
| begin | |
| return gen_uuidv7(clock_timestamp()); | |
| end $$ language plpgsql; | |
| create or replace function gen_uuidv7(p_timestamp timestamp with time zone) returns uuid as $$ | |
| declare | |
| v_time numeric := null; | |
| v_unix_t numeric := null; |