This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <stdint.h> | |
#include <libpq-fe.h> | |
bool exit_pipe(PGconn *connection ) | |
{ | |
PGpipelineStatus status = PQpipelineStatus(connection); |
This file contains 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
// /etc/nginx/njs/stream/auth_request.js | |
async function authValidate(r) { | |
const basicAuth = r.headersIn['Authorization']; | |
if (!basicAuth.toLowerCase().startsWith("basic")) { | |
r.error("Only BasicAuth is supported"); | |
r.return(401); | |
return; | |
} | |
const basicAuthDecoded = atob(basicAuth.replace(/Basic/gi, "").trim()); |
This file contains 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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, |
This file contains 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
# Apply your stack customization here. This file is not tracked by git. | |
# If you want to make persistent changes to this file you can do so by using | |
# `git update-index --no-assume-unchanged values-overrides.yaml` command, | |
# commiting changes, and then disabling file tracking by running | |
# `git update-index --assume-unchanged values-overrides.yaml` command. | |
prometheus: | |
# Configuration options in https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#monitoring.coreos.com/v1.RemoteWriteSpec | |
remoteWrite: |
This file contains 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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, |
This file contains 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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: cluster-monitoring-config | |
namespace: openshift-monitoring | |
data: | |
config.yaml: | | |
enableUserWorkload: true | |
--- | |
apiVersion: v1 |
This file contains 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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: cluster-monitoring-config | |
namespace: openshift-monitoring | |
data: | |
config.yaml: | | |
enableUserWorkload: true | |
prometheusK8s: |
This file contains 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
SURVEY_NUM=$1 | |
curl 'https://collabland-tn.gov.in/rest/Collabland/FMBMapServicePDF' \ | |
--data-raw "state=33&giscode=S1204004${SURVEY_NUM}&plotno=&scale=0&width=500&height=500" \ | |
--compressed | jq -r '.success' | base64 -D > $PWD/FMB-${SURVEY_NUM}.pdf |
This file contains 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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
This file contains 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:(() => {const doc = document.getElementsByName('loginFrame')[0].contentWindow.document.getElementById('prodPage').contentWindow.document.getElementsByName('actionFrame')[0].contentWindow.document;const e = doc.getElementsByTagName('embed')[0];document.location.replace(`${document.location.href}/../${e.getAttribute('pprintpg')}?vRcptNo=${encodeURIComponent(e.getAttribute('vpar'))}&vUsrID=${e.getAttribute('pusrid')}&vSession=${e.getAttribute('psession')}`)}) |
NewerOlder