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:
{ | |
"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") |
docker node ls --format "{{.ID}}" | xargs -I %nodeid -- docker node inspect %nodeid --format "{{ .ID }} {{ .Description.Hostname }} {{ .Status.Addr }}" |
#!/bin/bash | |
# more strict, if something goes wrong, script stops | |
set -e | |
workdir=/root/dns_syncer | |
newhostsfile=$workdir/newhosts | |
# copy file from primary | |
scp -q -o LogLevel=QUIET unpriv@mydns1:/etc/hosts $newhostsfile |
#!/bin/bash | |
set -e | |
filename="./my-file" | |
waitseconds=30 | |
now=$(date +%s) | |
timeout=$(( now + waitseconds )) | |
file_modified=$(stat -c '%Y' $filename) |
# https://communities.vmware.com/thread/278559 | |
$Destination = "/mnt/backup0/vmx/" | |
Connect-VIServer -Server <server> -User <user> -Password <password> | |
Get-VM | ` | |
Get-View | ` |
# https://communities.vmware.com/thread/278559 | |
$Destination = "/mnt/backup0/vmx/" | |
Connect-VIServer -Server <server> -User <user> -Password <password> | |
$ClusterReport=@() | |
$vms = Get-VM | |
foreach($item in $vms){ |