I hereby claim:
- I am utkuozdemir on github.
- I am utkuozdemir (https://keybase.io/utkuozdemir) on keybase.
- I have a public key ASCcFj5bVMx1-1Y0az9svIsZ66yx6SYGErTwjiM49XQZ_Ao
To claim this, I am signing this object:
package main | |
import ( | |
"context" | |
"errors" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"os" |
^[-+]?(((\d+(\.\d*)?|\d*(\.\d+)+)(ns|us|µs|ms|s|m|h))|0)+$ |
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
PVCS=( | |
"src-kubeconfig1/src-ctx1/src-ns1/src-pvc1:dest-kubeconfig1/dest-ctx1/dest-ns1/dest-pvc1" | |
"src-kubeconfig2/src-ctx2/src-ns2/src-pvc2:dest-kubeconfig2/dest-ctx2/dest-ns2/dest-pvc2" | |
"src-kubeconfig3/src-ctx3/src-ns3/src-pvc3:dest-kubeconfig3/dest-ctx3/dest-ns3/dest-pvc3" | |
) |
package org.utkuozdemir.json | |
import com.fasterxml.jackson.core.util.DefaultPrettyPrinter | |
import com.fasterxml.jackson.core.util.Separators | |
import com.fasterxml.jackson.databind.ObjectMapper | |
import org.junit.jupiter.api.Test | |
data class Person(val name: String, val age: Int) | |
class CustomPrettyPrinter : DefaultPrettyPrinter() { |
#!/usr/bin/env bash | |
set -euo pipefail | |
virsh list --all | \ | |
awk '{print $2}' | \ | |
xargs -L1 -I {} virsh destroy {} || true | |
virsh list --all | \ | |
awk '{print $2}' | \ | |
xargs -L1 -I {} virsh undefine {} || true |
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# https://developers.redhat.com/blog/2018/10/22/introduction-to-linux-interfaces-for-virtual-networking | |
# delete everything | |
sudo killall nc || true | |
sudo iptables -D FORWARD -i br1 -o br1 -j ACCEPT || true | |
sudo ip netns del ns1 || true |
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )" | |
LOCAL_DIR=$SCRIPT_DIR | |
REMOTE_SSH_USER=utku | |
REMOTE_SSH_HOST=u-home-pc-realtek-nic |
package main | |
import ( | |
"bufio" | |
"context" | |
"fmt" | |
corev1 "k8s.io/api/core/v1" | |
"k8s.io/client-go/kubernetes" | |
"k8s.io/client-go/tools/clientcmd" | |
"time" |
I hereby claim:
To claim this, I am signing this object:
FROM alpine:3 | |
ENV USER_ID=65535 | |
ENV GROUP_ID=65535 | |
ENV USER_NAME=rsync-user | |
ENV GROUP_NAME=rsync-user | |
RUN addgroup -g $GROUP_ID $GROUP_NAME && \ | |
adduser --shell /sbin/nologin --disabled-password \ | |
--no-create-home --uid $USER_ID --ingroup $GROUP_NAME $USER_NAME |