Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View flypenguin's full-sized avatar

Axel Bock flypenguin

View GitHub Profile
@flypenguin
flypenguin / vscode.json
Created February 1, 2018 09:29
visual studio code config
{
"editor.renderWhitespace": "boundary",
"editor.formatOnSave": true,
"editor.trimAutoWhitespace": true,
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"files.insertFinalNewline": true,
"editor.fontFamily": "'Droid Sans Mono dotted for Powerline', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
"window.zoomLevel": 0,
"[puppet]": {
@flypenguin
flypenguin / Makefile
Created March 14, 2018 13:49
My Terraform Makefile + scripts
gpg-open:
Makefile-scripts/gpg-open.sh
.PHONY: gpg-open
gpg-close:
Makefile-scripts/gpg-close.sh
.PHONY: gpg-close
gpg-reencrypt:
Makefile-scripts/gpg-open.sh
@flypenguin
flypenguin / keybase.md
Created September 15, 2018 21:34
keybase.md

Keybase proof

I hereby claim:

  • I am flypenguin on github.
  • I am flypenguin (https://keybase.io/flypenguin) on keybase.
  • I have a public key ASAP3238oAQPWItm51J7PKKS3Gul6mGVTXh_yK5TbE_CfAo

To claim this, I am signing this object:

@flypenguin
flypenguin / helm.yaml
Created November 11, 2018 14:11
k8s-kubectl-prepare-helm
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: tiller
@flypenguin
flypenguin / staging.yaml
Last active November 11, 2018 15:06
k8s-letsencrypt-issuer-staging
apiVersion: certmanager.k8s.io/v1alpha1
kind: ClusterIssuer
metadata:
name: letsencrypt-staging
spec:
acme:
# The ACME server URL
server: https://acme-staging-v02.api.letsencrypt.org/directory
# Email address used for ACME registration
all: clean build prepare-test test
.PHONY: all
clean:
rm -rf tmp
.PHONY: clean
build:
mvn package
.PHONY: build
@flypenguin
flypenguin / azure_rancher.tf
Created May 17, 2020 13:36
Rancher Azure fiction
# AGAIN - THIS DOES NOT WORK (as of 2020-05-17)
# WHY - no symlink support in azure files.
# ... but it could have been *that* easy.
resource "azurerm_resource_group" "personal" {
name = "test_${var.i_am}"
location = "West Europe"
}
@flypenguin
flypenguin / appservice.tf
Created November 20, 2020 17:33
appservice.tf
resource "azurerm_app_service" "paramails" {
name = "pkd-paramails-${random_string.server.result}"
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
app_service_plan_id = azurerm_app_service_plan.plan.id
site_config {
scm_type = "ExternalGit" # use "LocalGit" and it works!!
linux_fx_version = "PYTHON|3.8"
}
@flypenguin
flypenguin / zalando-operator-values.yaml
Created May 1, 2021 17:56
a fixed version for zalando's pg-operator helm chart
# enable CRD configuration
configTarget: OperatorConfigurationCRD
# the following values ARE THE DEFAULT VALUES. unfortunately they are coded as
# strings in the default values.yaml, and the verification (rightfully) complains
# that either boolean or integer values are needed. so we have to re-include them
# here but with the correct data type.
# the only exceptions to this are the commented-out values, which contain integers,
# but are needed as strings. what a mess.
# gat = (G)et (A)ws session(T)oken
gat() {
local TOKEN_DURATION=28800 # 8h
local APRO_BACKUP
local AKID_BACKUP
local ASAK_BACKUP
local ASET_BACKUP
APRO_BACKUP=$AWS_PROFILE
AKID_BACKUP=$AWS_ACCESS_KEY_ID