I hereby claim:
- I am cernoel on github.
- I am cernoel (https://keybase.io/cernoel) on keybase.
- I have a public key whose fingerprint is 3B7A 5091 B463 D18E 5A56 4A7F 13F7 C61B 7A60 4358
To claim this, I am signing this object:
copy_chart_to_csv_gz() { | |
local _backupdir=/var/lib/postgresql/data/backup | |
mkdir -p $_backupdir | |
# user internal path to store gzipped csv | |
docker exec -t --user=postgres $CONTAINER_NAME psql \ | |
--username="${POSTGRES_USER}" \ | |
--dbname="${POSTGRES_DB}" \ | |
--command="\COPY stocks.chart TO PROGRAM 'gzip > /var/lib/postgresql/data/backup/stocks.chart.csv.gz' WITH delimiter AS ',' CSV HEADER;" |
server { | |
server_name SERVICE.MY.DOMAIN; | |
listen 443 ssl; | |
ssl_certificate /etc/ssl/private/MY.DOMAIN/server.crt; | |
ssl_certificate_key /etc/ssl/private/MY.DOMAIN/server.key; | |
# block anything except /v2/* | |
if ($request_uri !~ ^/$|^/v2/) { return 403; } |
endpoints: | |
- name: check consul-service passing | |
ui: | |
hide-hostname: true | |
group: consul-service-api | |
url: "http://consul.service.dev.consul:8500/v1/health/service/consul?filter=Checks.Status%21%3d%22passing%22" | |
method: "GET" | |
interval: 30s | |
conditions: | |
- "[STATUS] == 200" |
endpoints: | |
- name: "consul service check - consul" | |
group: "consul service dns" | |
url: "consul.service.dev.consul:8600" # Address of the DNS server to use | |
dns: | |
query-name: "consul.service.dev.consul" | |
query-type: "A" | |
interval: 30s | |
conditions: | |
- "[DNS_RCODE] == NOERROR" |
#!/bin/bash | |
# get new image if file does not exist | |
if [[ ! -f debian-12-genericcloud-amd64.qcow2 ]]; then | |
#rm debian-12-genericcloud-amd64.qcow2 | |
wget https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2 | |
#sha check | |
fi; | |
# create vendor-cloudinit-template |
{ | |
"distSpecVersion":"1.1.0-dev", | |
"storage":{ | |
"dedupe": true, | |
"gc": true, | |
"gcDelay": "1h", | |
"gcInterval": "6h", | |
"rootDirectory":"/data/zot/" | |
}, | |
"http": { |
#!/bin/bash | |
HOST_IF="eth0" | |
RANGE="24" | |
if [ "x$1" != "x" ]; then | |
HOST_IF="$1" | |
fi | |
if [ "x$2" != "x" ]; then |
#!/bin/sh | |
set -e | |
DEFAULT=help | |
######################### | |
## your functions here ## | |
# # | |
help() { |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# requirements: | |
# * ssh root access to servers | |
# * wireguard tools installed | |
# * https://github.com/k4yt3x/wg-meshconf .. installed on your config machine | |
declare -a Servers=("ora-fra-one" "ora-fra-two" "ora-fra-three" "ora-ams-one" "ora-ams-two") |