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 | |
EXISTING_PG_CLUSTERS=$(kubectl get pg --all-namespaces -o json |jq '[.items[]|{name: .metadata.name}[]]') | |
CLUSTER_NAME_LABEL="cluster-name" | |
kubectl get svc --all-namespaces -l application=spilo -o json \ | |
| jq -r --argjson EXISTING_PG_CLUSTERS "${EXISTING_PG_CLUSTERS}" \ | |
--arg CLUSTER_NAME_LABEL "${CLUSTER_NAME_LABEL}" \ | |
' | |
.items[] |
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
javascript:window.location="https://gmail.com/#search/rfc822msgid:"+encodeURIComponent(window.document.body.innerHTML.match(/Message-ID: <(.*)>/)[1])+"/"+encodeURIComponent(window.location.search.toString().slice(1).split('&').filter(function(x){return x.slice(0,3) == "th="})[0].slice(3)); |
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
-- reference: https://docs.fluentbit.io/manual/filter/lua#callback-prototype | |
JSON = require("/fluent-bit/etc/JSON") | |
-- record["log"] comes as: | |
-- 'This is the first line\n{\"log\":\" and this is #2\",\"stream\":\"stdout\",\"attrs\":{\"io.kubernetes.container.name\":\"main\",\"io.kubernetes.pod.name\":\"my-pod\",\"io.kubernetes.pod.namespace\":\"dev\"},\"time\":\"2019-02-18T14:26:15.303296418Z\"}\n{\"log\":\" and this is #3\",\"stream\":\"stdout\",\"attrs\":{\"io.kubernetes.container.name\":\"main\",\"io.kubernetes.pod.name\":\"my-pod\",\"io.kubernetes.pod.namespace\":\"dev\"},\"time\":\"2019-02-18T14:26:16.303296418Z\"}\n{\"log\":\" and this is #4\",\"stream\":\"stdout\",\"attrs\":{\"io.kubernetes.container.name\":\"main\",\"io.kubernetes.pod.name\":\"my-pod\",\"io.kubernetes.pod.namespace\":\"dev\"},\"time\":\"2019-02-18T14:26:17.303296418Z\"}\n{\"log\":\" and this is #5\",\"stream\":\"stdout\",\"attrs\":{\"io.kubernetes.container.name\":\"main\",\"io.kubernetes.pod.name\":\"my-pod\",\"io.kubernetes.pod |
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
-- -*- coding: utf-8 -*- | |
-- | |
-- Source: https://raw.githubusercontent.com/jiyinyiyong/json-lua/master/JSON.lua | |
-- | |
-- Simple JSON encoding and decoding in pure Lua. | |
-- | |
-- Copyright 2010-2016 Jeffrey Friedl | |
-- http://regex.info/blog/ | |
-- Latest version: http://regex.info/blog/lua/json | |
-- |