I hereby claim:
- I am thbkrkr on github.
- I am thbkrkr (https://keybase.io/thbkrkr) on keybase.
- I have a public key ASDDNHZloOmZtrisHmHiFmPFP4bVXgso17kXYNgfnj9HDgo
To claim this, I am signing this object:
#!/bin/sh | |
docker history --no-trunc "$1" \ | |
| tac \ | |
| tr -s ' ' \ | |
| cut -d " " -f 5- \ | |
| sed 's,^/bin/sh -c #(nop) ,,g' \ | |
| sed 's,^/bin/sh -c,RUN,g' \ | |
| sed 's, && ,\n & ,g' \ | |
| sed 's,\s*[0-9]*[\.]*[0-9]*[kMG]*B\s*$,,g' \ |
grun() { | |
[[ "$PROJECT_ID" == "" ]] && echo "PROJECT_ID not set" && return | |
[[ ! -f Dockerfile ]] && echo "Dockerfile not found" && return | |
local name=$(basename $(pwd)) | |
local image=gcr.io/$PROJECT_ID/$name | |
docker build -t $image . | |
docker push $image | |
gcloud beta run deploy --allow-unauthenticated --image $image $name |
#!/bin/bash -eu | |
name=cslash device=/dev/nvme0n1p5 | |
sudo cryptsetup -c aes-xts-plain64 --hash sha512 --key-size 512 luksFormat -v $device | |
sudo cryptsetup luksOpen $device $name | |
sudo mkfs.ext4 -m 0 /dev/mapper/$name | |
echo "$name $device none luks,timeout=30" | sudo tee -a /etc/crypttab | |
echo "/dev/mapper/$name / ext4 errors=remount-ro 0 1" | sudo tee -a /etc/fstab |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh -e | |
curl -s 'http://www.topreplay.tv/index.php?do=search' \ | |
-d 'do=search&subaction=search&search_start=0&full_search=0&result_from=1&story=burger+quiz' \ | |
| pup 'div.img-short-title a attr{href}' |
#!/bin/bash -eu | |
# | |
# Get Kubernetes CPU and memory requested | |
# | |
main() { | |
declare kubeconfig=$1 | |
declare node_match="${2:-""}" | |
if [[ ! -f $kubeconfig ]]; then |
variable kubeconfig { | |
default = "/ops/clusters/c1.test/config/kubectl.secrets.conf" | |
} | |
variable dirconfig { | |
default = "/ops/k8s-deployments/kube-state-metrics" | |
} | |
variable prefix { | |
default = "kube-state-metrics-" | |
} |
wget https://cdn.rawgit.com/Mirantis/kubeadm-dind-cluster/master/fixed/dind-cluster-v1.9.sh | |
chmod +x dind-cluster-v1.9.sh | |
# start the cluster | |
./dind-cluster-v1.9.sh up | |
# add kubectl directory to PATH | |
export PATH="$HOME/.kubeadm-dind-cluster:$PATH" | |
kubectl get nodes |
sysctl -w fs.file-max="9999999" | |
sysctl -w fs.nr_open="9999999" | |
sysctl -w net.core.netdev_max_backlog="4096" | |
sysctl -w net.core.rmem_max="16777216" | |
sysctl -w net.core.somaxconn="65535" | |
sysctl -w net.core.wmem_max="16777216" | |
sysctl -w net.ipv4.ip_local_port_range="1025 65535" | |
sysctl -w net.ipv4.tcp_fin_timeout="30" | |
sysctl -w net.ipv4.tcp_keepalive_time="30" | |
sysctl -w net.ipv4.tcp_max_syn_backlog="20480" |