Skip to content

Instantly share code, notes, and snippets.

View StephenKing's full-sized avatar

Steffen Gebert StephenKing

View GitHub Profile
@StephenKing
StephenKing / asciidoc.yml
Created May 27, 2020 23:18
GitHub Action to render and upload Asciidoc
name: build asciidoc
on:
push:
branches:
- master
jobs:
asciidoc_build:
runs-on: ubuntu-18.04
name: Build Asciidoc
<VirtualHost *:443>
ServerName review.typo3.org
ServerAlias
DocumentRoot /var/www
SSLEngine on
SSLProxyEngine on
SSLCertificateFile /etc/ssl_certs/....crt
SSLCertificateKeyFile /etc/ssl_certs/....key
@StephenKing
StephenKing / asg_of_server_with_floating.yaml
Last active October 20, 2021 14:15
Assigning a Floating IP Address to Each Instance of an Autoscaling Group in OpenStack Heat
heat_template_version: 2013-05-23
description: >
This template creates an AutoScalingGroup based on the stack
defined in the file `server_with_floating.yaml`.
parameters:
key_name:
type: string
description: Name of an existing key pair to use for the instances
@StephenKing
StephenKing / tf012.sh
Created May 8, 2020 08:30
Terraform 0.12 syntax migration
#!/bin/bash
#
# Replaces certain (simpler) occurences of Interpolation-only expressions,
# which are deprecated in Terraform 0.12
#
# works on MacOS sed, no clue if I have GNU sed or BSD sed.. it doesn't want to tell me...
SED_CMD="sed -i.bak -E "
@StephenKing
StephenKing / job-dsl-cookbooks.groovy
Last active May 14, 2019 09:08
ls3-chef-job-dsl
job("main-repo") {
scm {
github("StephenKing/chef-ci-main-repo")
}
steps {
shell("knife upload roles environments data_bags --chef-repo-path ./")
}
}
@StephenKing
StephenKing / talks.md
Last active April 3, 2019 15:27
DevOps Meetup XXL 2019

Talks

Entwickelst du noch oder lieferst du schon? (Sebastian Schmid, DATEV)

DevOps ist in aller Munde und wer sich damit auseinandersetzt, ist schnell begeistert. Die Betrachtung der gesamten Wertschöpfungskette ist dabei das Wichtigste und gleichzeitig die größte Herausforderung, wenn man sich in einem Unternehmen mit kleinteiligen Prozessen und mehr oder weniger abgegrenzten Abteilungen und Bereichen befindet. Wir haben die Herausforderung angenommen und befinden uns im Wandel hin zu einer DevOps Kultur. Bei DATEV haben wir in den letzten Jahren viele Erfahrungen sammeln können, angefangen beim Kulturwandel bis hin zu den Tools.

Lessons Learned:

  • Kultur & Mindset - Culture eats Strategy for Breakfast
  • Product Teams
@StephenKing
StephenKing / create-partition.sh
Created February 7, 2019 20:07
CloudTrail Athena: Create Partitions
#!/bin/bash
# creates Athena partitions for cloudtrail logs (per account, region, year, month)
# usage:
# ./create-partition.sh my-cloudtrail-bucket 1234566 | pbcopy
BUCKET=$1
ACCOUNT=$2
YEAR=$(date +'%Y')
@StephenKing
StephenKing / upload-changes.sh
Created February 4, 2017 19:54
Parses git diff to upload changes of main chef-repo (data bags, environments, roles)
#!/usr/bin/env bash
# This file should be called with one argument, which is a list of commits
# from the previous one (the one which should be seen as "processed) until
# to the latest one, which should be included.
#
# Repo as at commit a123. Now new commits b234 and c345 pushed.
# Expected command:
# upload-changes.sh a123..c345
#
@StephenKing
StephenKing / README.md
Last active January 18, 2018 08:30
Grafana Dashboard for kamon-akka 1.0
  • make sure that the prometheus job is called kamon
  • correct the data source
  • update many diagrams and change/remove the akka_role="$role" label. We have this available through relabeling of AWS EC2 tags.
@StephenKing
StephenKing / infos.txt
Last active January 23, 2017 09:56
Pushing MPLS FlowMods to NEC PF5240
NEC PF5240
# show version
Date 2015/07/02 11:26:13 UTC
Model: PF5240F-48T4XW
S/W: OS-F3PA Ver. V6.0.0.0
H/W: Main board
PF5240F-48T4XW-AX [Y1752CFA0000S4068DCR002:80C50021:2200:11B636-11B636]