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
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # This file is based on github.com/maaaaz/fgpoliciestocsv | |
| # | |
| # Copyright (C) 2021, Sylvain Rabot <sylvain at abstraction .fr> | |
| # Copyright (C) 2014, 2020, Thomas Debize <tdebize at mail.com> | |
| # All rights reserved. | |
| # | |
| # This script is a free software: you can redistribute it and/or modify |
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
| from __future__ import absolute_import, division, print_function | |
| import argparse | |
| import http.server | |
| import json | |
| import sys | |
| import urllib.parse | |
| import webbrowser | |
| from urllib.parse import urlparse | |
| import requests |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am sylr on github. | |
| * I am sylr (https://keybase.io/sylr) on keybase. | |
| * I have a public key ASAiPbnJcHTFwPhDIKPs78SeFplZqxnISRvCAcPsuOtzxgo | |
| To claim this, I am signing this object: |
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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| annotations: | |
| deployment.kubernetes.io/revision: "8" | |
| creationTimestamp: "2020-11-02T14:42:53Z" | |
| generation: 8 | |
| labels: | |
| app.kubernetes.io/instance: flux | |
| app.kubernetes.io/version: latest |
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
| #!/usr/bin/env sh | |
| URLS[0]="https://www.google.com" | |
| URLS[1]="http://169.254.169.254/metadata/instance?api-version=2020-06-01" # azure internal endpoint | |
| HEADERS[O]="" | |
| HEADERS[1]="-H 'Metadata: true'" | |
| OUTPUT=${OUTPUT:-/tmp/curl.prom} | |
| SLEEP=${SLEEP:-10} |
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 ( | |
| _ "unsafe" | |
| "fmt" | |
| ) | |
| var slice = []byte("AAA") | |
| func main() { |
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 | |
| // Original code found at: https://play.golang.org/p/kWmjEuXn0ab | |
| import ( | |
| "fmt" | |
| "sync" | |
| "time" | |
| ) |
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
| ✘ s.rabot@wmbpro-srabot ~/go/src/github.com/prometheus/alertmanager master make 09:12:40 | |
| >> checking code style | |
| >> checking license header | |
| >> running golangci-lint | |
| GO111MODULE=on go list -e -compiled -test=true -export=false -deps=true -find=false -tags= -- ./... > /dev/null | |
| go: finding github.com/prometheus/client_golang v1.2.1 | |
| GO111MODULE=on /Users/s.rabot/go/bin/golangci-lint run ./... | |
| >> running check for unused/missing packages in go.mod | |
| GO111MODULE=on go mod tidy | |
| >> running check for unused packages in vendor/ |
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
| kind: HorizontalPodAutoscaler | |
| apiVersion: autoscaling/v2beta1 | |
| metadata: | |
| name: {{ HPA }} | |
| spec: | |
| scaleTargetRef: | |
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| name: {{ DEPLOYMENT }} | |
| minReplicas: 2 |
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" | |
| ) | |
| type Wheel struct { | |
| // Diameter Wheel diameter in centimeters | |
| Diameter int64 | |
| } |