I hereby claim:
- I am JrCs on github.
- I am jrcs (https://keybase.io/jrcs) on keybase.
- I have a public key whose fingerprint is 6869 C192 F5DD 4427 7C1B 4AEA 7B52 C353 08D5 A53E
To claim this, I am signing this object:
#!/bin/bash | |
set -eu | |
mkdir -p bin | |
[[ ! -x bin/kubectl ]] \ | |
&& curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/$(uname| tr '[:upper:]' '[:lower:]')/amd64/kubectl \ | |
&& chmod +rx kubectl \ | |
&& mv kubectl bin/ |
-- Logs begin at Sat 2020-02-01 04:17:19 CET. -- | |
Mar 17 09:07:09 socle-mst-001 systemd[1]: Started containerd container runtime. | |
Mar 17 09:07:09 socle-mst-001 containerd[19663]: time="2020-03-17T09:07:09.726483498+01:00" level=info msg="starting containerd" revision=d76c121f76a5fc8a462dc64594aea72fe18e1178 version=v1.3.3 | |
Mar 17 09:07:09 socle-mst-001 containerd[19663]: time="2020-03-17T09:07:09.726558024+01:00" level=debug msg="changing OOM score to -999" | |
Mar 17 09:07:09 socle-mst-001 containerd[19663]: time="2020-03-17T09:07:09.753412336+01:00" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1 | |
Mar 17 09:07:09 socle-mst-001 containerd[19663]: time="2020-03-17T09:07:09.753740547+01:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." type=io.containerd.snapshotter.v1 | |
Mar 17 09:07:09 socle-mst-001 containerd[19663]: time="2020-03-17T09:07:09.755099646+01:00" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." |
resource "local_file" "generated_file" { | |
for_each = fileset("my_source_dir", "[^.]*") | |
filename = "my_destination_dir/${each.value}" | |
content = templatefile("my_source_dir/${each.value}", { | |
"my_var" = "my_value" | |
}) | |
} |
I1121 10:13:07.338392 1 openstack_loadbalancer.go:868] Ensure an internal loadbalancer service. | |
I1121 10:13:07.348436 1 loadbalancer.go:68] Found Octavia API versions: [{DEPRECATED v1} {SUPPORTED v2.0} {SUPPORTED v2.1} {CURRENT v2.2}] | |
I1121 10:13:07.348497 1 loadbalancer.go:77] The current Octavia API version: 2.200000047683716 | |
I1121 10:13:07.348564 1 openstack_loadbalancer.go:890] loadBalancerSourceRanges is suppported | |
I1121 10:13:07.392054 1 openstack_loadbalancer.go:916] Creating loadbalancer kube_service_kubernetes_default_nginx | |
I1121 10:13:07.392157 1 openstack_loadbalancer.go:550] getStringFromServiceAnnotation(&Service{ObjectMeta:{nginx default /api/v1/namespaces/default/services/nginx 3b710b32-4d6c-45a8-b9c5-0fe6e1154c82 155108 0 2019-11-21 10:13:07 +0100 CET <nil> <nil> map[app:nginx] map[kubectl.kubernetes.io/last-applied-configuration:{"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"labels":{"app":"nginx"},"name":"nginx","namespace":"default"}," |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
docker network create posteio &>/dev/null | |
id=$(docker network inspect --format "{{.ID}}" posteio 2>/dev/null | cut -c1-12) | |
[[ -z "$id" ]] && exit 1 | |
MASQUERADE=$(iptables -S -t nat | egrep "POSTROUTING.*br-$id.*MASQUERADE") | |
[[ -z "$MASQUERADE" ]] && exit 0 | |
source /etc/environment | |
[[ -z "$POSTEIO_PUBLIC_IPV4" ]] && exit 1 | |
iptables -t nat $(echo "$MASQUERADE" | sed -n "s/^-A/-I/;s/MASQUERADE/SNAT --to-source $POSTEIO_PUBLIC_IPV4/p") |
#!/bin/bash | |
shortest() | |
{ | |
local arrayname=${1:?Array name required} varname=${2:-shortest} | |
local IFS= string e | |
eval "array=( \"\${$arrayname[@]}\" )" | |
shortest=${array[0]} | |
for e in "${array[@]}"; do |
New |
bash -c ' | |
<%= "export https_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%> | |
exists() { | |
if command -v $1 &>/dev/null | |
then | |
return 0 | |
else | |
return 1 | |
fi |