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
| From 0ecbdc70f88db92801ac99628f8d21897eeb0646 Mon Sep 17 00:00:00 2001 | |
| From: "Jonathan Gonzalez V." <jonathan.abdiel@gmail.com> | |
| Date: Sun, 5 Oct 2025 18:11:56 +0200 | |
| Subject: [PATCH v4 1/1] Introduce a new function pg_get_publication_ddl() that | |
| returns the CREATE ddl statement for a given PUBLICATION. | |
| MIME-Version: 1.0 | |
| Content-Type: text/plain; charset=UTF-8 | |
| Content-Transfer-Encoding: 8bit | |
| The function accepts a publication name or OID indistinctively, |
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
| FILE1=$1 | |
| FILE2=$2 | |
| if [[ -z "$FILE1" ]] || [[ -z "$FILE2" ]] ; then | |
| echo "Must add two different config files" | |
| exit 1 | |
| fi | |
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 | |
| set -e | |
| HOST=$1 | |
| DEST=$2 | |
| DATE=`date +%Y-%m-%d` | |
| influxd backup -host $HOST:8088 $DEST/$DATE/metadata/ |
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
| if ($cookie_COOKIE-NAME ~ "value_1") { | |
| # Do some crazy stuff here | |
| } | |
| if ($cookie_COOKIE-NAME ~ "value_2") { | |
| # Do some other crazy stuff here | |
| } |
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.sh | |
| # We get all de scrubs | |
| function get_pg_scrub_dates { | |
| ceph pg dump | awk '$1 ~ /[0-9a-f]+\.[0-9a-f]+/ {print $22, $23, $1}' | sort > /tmp/scrub_dates | |
| } | |
| # We start running the dep scrub |
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/sh | |
| NAME_CACHE=$1 | |
| function cache_activate { | |
| RES=`touch /var/run/cache_activated` | |
| if [ $? -eq 0 ]; then |
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 | |
| DOMAIN=$1 | |
| DNS_SERVERS=("8.8.8.8" "8.8.4.4") | |
| for DNS in ${DNS_SERVERS[@]}; do | |
| ANSWER=(`dig @$DNS A $DOMAIN | grep -A 1 "ANSWER SECTION" | grep $DOMAIN | awk '{print $2" "$5}'`) | |
| echo $DNS" -> TTL "${ANSWER[0]}" -> "${ANSWER[1]} | |
| done; |
I hereby claim:
- I am sxd on github.
- I am sxd (https://keybase.io/sxd) on keybase.
- I have a public key ASAbTEMbk9g2AhKfXbZVdknc8cDSh7C6ua61fWaIG1YPdAo
To claim this, I am signing this object:
NewerOlder