Skip to content

Instantly share code, notes, and snippets.

View grampelberg's full-sized avatar

Thomas Rampelberg grampelberg

View GitHub Profile
#!/bin/bash
set -o errexit -o pipefail -x
script -q -c 'draft init' <<EOF
docker.io
username
password
organization
ingest.domain
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: bk
labels:
component: bk
spec:
serviceName: bk
replicas: 1
template:
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: pulsar-ui
labels:
component: pulsar-ui
spec:
replicas: 1
template:
metadata:
@grampelberg
grampelberg / help.makefile
Created July 19, 2017 16:54
help.makefile
export NO_COLOR=\033[0m
export OK_COLOR=\033[32;01m
.PHONY: help
help: SHELL := /bin/bash
help:
@# Output all targets available.
@ echo "usage: make [target] ..."
@ echo ""
@ grep -h -B1 $$'^\t@#' $(MAKEFILE_LIST) \

Keybase proof

I hereby claim:

  • I am pyronicide on github.
  • I am grampelberg (https://keybase.io/grampelberg) on keybase.
  • I have a public key ASBb4gDwiihMdd__lTrG16mgZO_TAGBEzjpOuAvluusewgo

To claim this, I am signing this object:

dps() {
docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Ports}}' | awk -v OFS='\t' '{if($3 ~ /->/) {split($3,a,":"); split(a[2],b,"->"); print $1, $2, b[1] } else { print $1, $2, $3}} ' | column -t
}
FROM stackbrew/centos:centos6
MAINTAINER Mesosphere [email protected]
RUN yum -y install wget
RUN wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm && \
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm && \
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
RUN yum -y groupinstall "Development tools"
RUN yum -y install \
make \
{
"container": {
"image": "docker:///libmesos/ubuntu"
},
"id": "ubuntu",
"instances": "1",
"cpus": ".5",
"mem": "512",
"uris": [ ],
"cmd": "while true; do sleep 10; done"
To get started with Docker/Marathon/Mesos, you need to install a
new Mesos, a new Marathon, and Deimos, the bridge to Docker.
You'll also need Docker and the JVM. These instructions are for
Fedora 20.
## Install Mesos prerequisites
:; sudo yum install zookeeper-server java-1.7.0-openjdk python-setuptools curl python-pip python-devel
:; sudo cp /etc/zookeeper/zoo_sample.cfg /etc/zookeeper/zoo.cfg
:; echo 1 | sudo dd of=/var/lib/zookeeper/data/myid
$(function() {
var day = new Date().getDay();
var opener = {
button: function() {
$("<button>Open in tabs</button>").prependTo("#right_bar").click(opener.in_tabs);
},
in_tabs: function() {
$(".bookmark").each(function(k, e) {