This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
iptables -N cluster-input && \ | |
iptables -A cluster-input -m comment --comment "lo accept" -i lo -j ACCEPT && \ | |
iptables -A cluster-input -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT && \ | |
iptables -A cluster-input -m comment --comment "calico subnet src accept" -s 192.168.0.0/16 -j ACCEPT && \ | |
iptables -A cluster-input -m comment --comment "calico subnet dst accept" -d 192.168.0.0/16 -j ACCEPT && \ | |
iptables -A cluster-input -m comment --comment "kubelet subnet src accept" -s 10.0.0.0/8 -j ACCEPT && \ | |
iptables -A cluster-input -m comment --comment "kubelet subnet dst accept" -d 10.0.0.0/8 -j ACCEPT && \ | |
iptables -A cluster-input -j RETURN && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
WALLETS_FILE='wallets.txt' | |
if [ ! -f "$WALLETS_FILE" ]; then | |
echo -e "File '"$WALLETS_FILE"' does not exists."; | |
exit 1; | |
fi | |
while IFS= read -r address; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require": { | |
"guzzle/guzzle": "~3.9", | |
"ext-json": "*", | |
"ext-curl": "*", | |
"guzzlehttp/guzzle": "^7.8", | |
"ext-pcntl": "*" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const table = document.querySelector('.mw-parser-output table'); | |
var protocolToVersionMap = {} | |
let protocol; | |
for (const tr of table.querySelectorAll('tr')) { | |
const elements = tr.getElementsByTagName('td'); | |
const version = elements[0]; | |
if (version === undefined) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XMS="2048M" | |
XMX="2048M" | |
POSITIONAL=() | |
USERNAME="" | |
TL_MINECRAFT=${HOME}"/Minecraft" | |
while [[ $# -gt 0 ]]; do | |
key="$1" | |
case $key in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
KEY="$1" | |
if [ -z "$KEY" ]; then | |
echo "Nothing to remove" | |
exit | |
fi | |
sudo etcdctl \ | |
--endpoints=https://localhost:2379 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: argocd-server-ingress-grpc | |
namespace: argocd | |
annotations: | |
kubernetes.io/ingress.class: haproxy | |
haproxy.org/backend-protocol: "grpc" | |
haproxy.org/ssl-certificate: "argocd/<yourdomain-tls-secret-name>" | |
spec: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{- range $service := (list "frontend" "temporal-worker" "backend") }} | |
{{- $serviceValues := index $.Values $service -}} | |
{{- toYaml $serviceValues }} | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: {{ include "monoplace.componentname" (list $ $service) }} | |
labels: | |
helm.sh/chart: {{ include "monoplace.chart" $ }} | |
app.kubernetes.io/managed-by: {{ $.Release.Service }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
ENV_SOURCE_FILE='.env' | |
OUTPUT_FILENAME='.env.production.local' | |
SECRET_DIRNAME='monoplace' | |
POSITIONAL=() | |
while [[ $# -gt 0 ]]; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
REGISTRY_URI="registry.gitlab.com" | |
USERNAME="" | |
PASSWORD="" | |
OUTPUT="raw" | |
ME_FILENAME="./$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")" | |
HELP_USAGE="${ME_FILENAME} -u {username} -p {password} [-o raw/json/base64/bs64] registry.example.co" |
NewerOlder