Skip to content

Instantly share code, notes, and snippets.

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
apiVersion: v1
kind: Pod
metadata:
generateName: zddbench-
spec:
restartPolicy: Never
containers:
- image: cowbell/zddbench:latest
name: zddbench
restartPolicy: Never
#!ipxe
set base-url http://stable.release.core-os.net/amd64-usr/current
kernel ${base-url}/coreos_production_pxe.vmlinuz initrd=coreos_production_pxe_image.cpio.gz coreos.first_boot=1 coreos.config.url=https://example.com/pxe-config.ign
initrd ${base-url}/coreos_production_pxe_image.cpio.gz
boot
@leprechaun
leprechaun / exit-code-pod-shell.md
Last active August 14, 2017 17:46
Task Launcher
[nginx-static-app@master %] $ ./launch-task.sh exit-code-pod.yml
[nginx-static-app@master %] $ echo $?
123

Enclosure diagrams use containment to represent the hierarchy. Although circle packing is not as space-efficient as a treemap, it better reveals the hierarchy. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

See also this zoomable version.

export PASSWORD=winter32
#!/usr/bin/env python
import boto
BUCKET_NAME = "YOUR-BUCKET-NAME"
DELETE_DATES = [
"2016-01-01",
"2016-01-02",
"2016-01-03",
"2016-01-04",
"2016-01-05",

####Techniques

  • Adopt
    • Structured logging DaGai, log in JSON, do cool shit with it. Show a real ELK setup.
  • Trail
    • Canary Build "Continuous integration" for 3rd party libraries
    • build pipeline for machine images How most REA build pipelines work already. Packer?
  • Pace-layered Application Strategy
@leprechaun
leprechaun / PhealstalkClientClass.php
Created December 27, 2010 19:03
This class would reconnect with increasing delays if th
<?php
Class YourClientClass
{
protected function getBeanstalkConnection( $RetryCount = 0 )
{
$this -> getLogger() -> Notice( "getBeanstalkConnection ( $RetryCount attempt )" );
try
{
$BS = MyFactory::getBeanstalk();