Skip to content

Instantly share code, notes, and snippets.

@dabio
dabio / calico.yaml
Last active December 13, 2023 18:35
CKS: Setup Kubernetes
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: calico-kube-controllers
namespace: kube-system
labels:
k8s-app: calico-kube-controllers
spec:
maxUnavailable: 1
selector:
@dabio
dabio / dabio.tf
Last active August 20, 2019 07:50
provider "aws" {
region = "eu-central-1"
}
resource "aws_route53_zone" "main" {
name = "dab.io"
}
resource "aws_route53_record" "naked" {
zone_id = "${aws_route53_zone.main.zone_id}"
@dabio
dabio / start-golang.md
Created January 30, 2019 21:39
Getting started with Go and AWS Lambda
"""
The Firebase Auth REST SDK.
## Quickstart
The only thing to get going is to call `fireauth.init(API_KEY)`, where
`API_KEY` refers to the Web API Key, which can be obtained on the
[project settings](https://console.firebase.google.com/project/_/settings/general/?authuser=0)
page in your admin console. When not passed the `API_KEY`, the `API_KEY`
is picked up from the `FIREBASE_API_KEY` environment variable.
package fireauth
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io"
"net/http"
"time"
@dabio
dabio / muffins.rst
Created March 5, 2018 14:04
STARBUCKS CHOCOLATE MUFFINS

STARBUCKS CHOCOLATE MUFFINS

  • Prep time: 15mins
  • Cook time: 20mins

Makes 12 muffins

INGREDIENTS

@dabio
dabio / ecr-cleanup.sh
Last active January 8, 2018 19:16
Cleanup outdated ECR images
#!/bin/bash
set -o pipefail # the exit status of the last failed command gets returned
set -o nounset # exit when using undeclared variables
# Defaults
REPO=""
VERBOSE=0
PROFILE="default"
KEEP_IMAGES=3
@dabio
dabio / Anaconda.sublime-settings
Last active September 24, 2018 13:57
SublimeText setup and configuration
{
"python_interpreter": "python3"
}
@dabio
dabio / .exrc
Last active April 24, 2017 12:08
.dotfiles for OpenBSD
set number
set ruler
" searching
set ignorecase
set showmatch
set tabstop=4
set shiftwidth=4
@dabio
dabio / hosts
Created March 6, 2017 13:31
Ansible playbook configuration to fix wrong solr configuration and run log rotate without appending .1.1.1.1 to filenames.
[solr]
10.10.1.62 hostname=solr-repeater05.prod.lan
10.10.1.60 hostname=solr-repeater04.prod.lan
10.10.1.18 hostname=solr-repeater03.prod.lan
10.10.1.17 hostname=solr-repeater02.prod.lan
10.10.1.16 hostname=solr-repeater01.prod.lan
10.10.1.18 hostname=solr-master.prod.lan