- Proxies http
- Logic similar to cloudflare page rules
- all this bundles into an api product
- api key mtls auth
- Terraform seems to support this
- Canary and rate limiting
- Quotas per partner
This file contains hidden or 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
! terminal colours | |
!*foreground:#CCCCCC | |
!*background:#1B1D1E | |
! | |
!!black darkgray | |
!*color0: #1B1D1E | |
!*color8: #808080 | |
!!darkred red | |
!*color1: #FF0044 | |
!*color9: #F92672 |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
func main() { | |
cc := make(chan int) |

This file contains hidden or 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
module "projects_iam_bindings_additive" { | |
source = "terraform-google-modules/iam/google//modules/projects_iam" | |
version = "~> 6.4" | |
mode = "additive" | |
projects = ["pse-jeronimo-garcia"] | |
bindings = { | |
"roles/storage.admin" = [ | |
"user:[email protected]" |
This file contains hidden or 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
import email | |
import getpass, imaplib | |
import os | |
import sys | |
imaplib._MAXLINE = 9999999 | |
acc = sys.argv[1] | |
year = sys.argv[2] | |
path = "attachments-%s-%s" % ( acc , year) | |
This file contains hidden or 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
./Makefile | |
.PHONY: default | |
default: template | |
template: | |
helm template gce-ingress/ -f gce-ingress/values.yaml | |
./gce-ingress/templates/backend.yaml | |
apiVersion: cloud.google.com/v1 | |
kind: BackendConfig | |
metadata: | |
name: {{ .Values.backend.name }} |
This file contains hidden or 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
for i in $(curl -s https://registry.hub.docker.com/v1/repositories/sonatype/nexus3/tags | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}') | |
do | |
TIMEOUT=60 | |
echo $i ; docker run --net=host -d --rm sonatype/nexus3:${i} | |
until [[ $(curl -s -o /dev/null localhost:8081 -w "%{response_code}") == 200 ]] | |
do | |
echo "waiting on nexus..., sleeping 5" | |
sleep 5 | |
done |
This file contains hidden or 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
for i in $(curl -s https://registry.hub.docker.com/v1/repositories/sonatype/nexus3/tags | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}') | |
do | |
TIMEOUT=60 | |
echo $i ; docker run --net=host -d --rm sonatype/nexus3:${i} | |
until [[ $(curl -s -o /dev/null localhost:8081 -w "%{response_code}") == 200 ]] | |
do | |
echo "waiting on nexus..., sleeping 5" | |
sleep 5 | |
done |
This file contains hidden or 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
for i in $(curl -s https://registry.hub.docker.com/v1/repositories/sonatype/nexus3/tags | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}') | |
do | |
echo $i ; docker run --net=host -d --rm sonatype/nexus3:${i} | |
until [[ $(curl -s -o /dev/null localhost:8081 -w "%{response_code}") == 200 ]] | |
do | |
echo "waiting on nexus..." | |
sleep 1 | |
done | |
until [[ $(sudo cat /proc/$(docker inspect $(docker ps | grep -v CONT | awk '{ print $1 }') -f '{{ .State.Pid }}')/root/nexus-data/admin.password) ]] |