cat /proc/sys/net/bridge/bridge-nf-call-iptablessysctl vm.swappiness=0
swapoff -a| #!/usr/bin/env bash | |
| set -e | |
| trap "{ rm -f $tmpfile; }" EXIT | |
| tmpfile="$(mktemp)" | |
| main() { | |
| curl -Lo "$tmpfile" 'https://discord.com/api/download?platform=linux' | |
| sudo dpkg -i "$tmpfile" |
| #!/usr/bin/env bash | |
| export CF_CURL_OPTS=() | |
| export CF_V4_API='https://api.cloudflare.com/client/v4' | |
| _cf_exit() { | |
| # if being called directly, don't exit | |
| if [ ${#FUNCNAME[@]} -eq 0 ]; then | |
| return 1 | |
| fi | |
| exit 1 |
| #!/usr/bin/env ruby | |
| require 'redis' | |
| require 'flipper' | |
| require 'flipper/adapters/redis' | |
| class Feature | |
| ENABLED = Flipper::Actor.new(true) | |
| DISABLED = Flipper::Actor.new(false) | |
| def initialize |
| #!/usr/bin/env bash | |
| # Exit if no arguments are passed | |
| if [ $# -lt 1 ]; then | |
| cat << HELP | |
| gcr_cleanup -- list or delete all but the 5 newest tags for all images | |
| EXAMPLE: | |
| - list all but the 5 newest tags for all images |
| { | |
| "k8s_secret": { | |
| "prefix": "k8s_secret", | |
| "scope": "plaintext,yaml", | |
| "body": [ | |
| "apiVersion: v1", | |
| "kind: Secret", | |
| "metadata:", | |
| " name: ${1:secret_name}", | |
| "type: Opaque", |
| mkdir config | |
| cd config | |
| git init | |
| git remote add -f origin https://github.com/cockroachdb/cockroach | |
| git config core.sparseCheckout true | |
| echo "cloud/kubernetes" >> .git/info/sparse-checkout | |
| git pull origin master |
| #!/usr/bin/env bash | |
| set -e | |
| template() { | |
| cat <<EOF | |
| apiVersion: policy/v1beta1 | |
| kind: PodDisruptionBudget | |
| metadata: | |
| name: {{NAME}} | |
| namespace: default |
| package middlewares | |
| import ( | |
| "crypto/hmac" | |
| "crypto/sha256" | |
| "encoding/hex" | |
| "github.com/gin-gonic/gin" | |
| ) |