Skip to content

Instantly share code, notes, and snippets.

Steffen Gebert StephenKing

View GitHub Profile
@StephenKing
StephenKing / talks.md
Last active Apr 3, 2019
DevOps Meetup XXL 2019
View talks.md

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 Feb 7, 2019
CloudTrail Athena: Create Partitions
View create-partition.sh
#!/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 / README.md
Last active Jan 18, 2018
Grafana Dashboard for kamon-akka 1.0
View README.md
  • 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 / upload-changes.sh
Created Feb 4, 2017
Parses git diff to upload changes of main chef-repo (data bags, environments, roles)
View upload-changes.sh
#!/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 / reset.sh
Last active Nov 23, 2016
Network config reset
View reset.sh
#!/bin/sh
##########################################
# Make sure that $FILE.$BACKUP_EXT exists!
# i.e. /etc/network/interfaces.bak
##########################################
FILE=/etc/network/interfaces
BACKUP_EXT=bak
@StephenKing
StephenKing / chef-client.log
Created Oct 23, 2016
Installation of dependent plugins
View chef-client.log
[2016-10-23T16:35:49+02:00] DEBUG: Plugin workflow-support does not seem to be installed
[2016-10-23T16:35:49+02:00] INFO: Installing workflow-support:2.9
[2016-10-23T16:35:49+02:00] DEBUG: Installing plugin dependencies for workflow-support
[2016-10-23T16:35:49+02:00] DEBUG: Reading workflow-api's information from /var/lib/jenkins/plugins/workflow-api.jpi
[2016-10-23T16:35:49+02:00] DEBUG: Content of /var/lib/jenkins/plugins/workflow-api.jpi manifest: Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: svanoort
Build-Jdk: 1.8.0_102
Extension-Name: workflow-api
@StephenKing
StephenKing / asg_of_server_with_floating.yaml
Last active May 22, 2018
Assigning a Floating IP Address to Each Instance of an Autoscaling Group in OpenStack Heat
View asg_of_server_with_floating.yaml
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
View TWRP-piccolo_decryptt2.img.txt
Starting TWRP 3.0.2-0 on Fri Jan 9 14:18:53 1970
(pid 238)
RECOVERY_SDCARD_ON_DATA := true
I:Lun file '/sys/devices/platform/msm_hsusb/gadget/lun0/file'
TW_INCLUDE_CRYPTO := true
I:Found brightness file at '/sys/class/leds/lcd-backlight/brightness'
I:Got max brightness 255 from '/sys/class/leds/lcd-backlight/max_brightness'
I:TWFunc::Set_Brightness: Setting brightness control to 128
I:LANG: en
Starting the UI...fb0 reports (possibly inaccurate):
@StephenKing
StephenKing / Dockerfile
Last active Apr 14, 2016
SSL issues in Docker Debian 8
View Dockerfile
# fails with SSL error
FROM debian:8
# returns HTML content (SSL successful)
# FROM debian:7
# FROM ubuntu:latest
RUN apt-get update
RUN apt-get -y install curl ca-certificates
RUN curl https://akamai.bintray.com
View default.rb
elasticsearch_user 'elasticsearch-logging'
elasticsearch_install 'elasticsearch-logging'
elasticsearch_configure 'elasticsearch-logging'
elasticsearch_service 'elasticsearch-logging' do
service_actions [:enable]
end
You can’t perform that action at this time.