Skip to content

Instantly share code, notes, and snippets.

View bketelsen's full-sized avatar
💭
Making tools to make the tools.

Brian Ketelsen bketelsen

💭
Making tools to make the tools.
View GitHub Profile
@mopemope
mopemope / nspawn-container
Last active October 29, 2016 16:53
nspawn-container
#!/bin/bash
TOOLBOX_DOCKER_IMAGE=$1
TOOLBOX_USER=root
machinename=$(echo "${USER}-${TOOLBOX_DOCKER_IMAGE}" | sed -r 's/[^a-zA-Z0-9_.-]/_/g')
machinepath="/var/lib/toolbox/${machinename}"
if [ ! -d ${machinepath} ] || systemctl is-failed ${machinename} ; then
sudo mkdir -p "${machinepath}"
@soellman
soellman / easy-k8s-coreos.md
Last active July 22, 2019 14:10
Easy Kubernetes on CoreOS

Easy Kubernetes Installation on CoreOS

At Timeline Labs, we are continuously looking at new technologies to see what fits our needs. We are especially excited about Kubernetes from Google to manage our services atop Docker and CoreOS.

This process for installing Kubernetes on CoreOS uses Flannel for Kubernetes networking and should be cloud provider agnostic. To deploy the Kubernetes master functionality into the cluster, it uses fleetctl.

Thanks to Kelsey Hightower and his blog posts! They served as a great starting point for this process.

How do I get this running?

Add the cloud config below to your own and bring up your cluster using a CoreOS version with Docker 1.3 (currently v472.0.0 in alpha). During that initial boot, the download-kubernetes and download-flannel units will download binaries from the latest project release and use those.

@crosbymichael
crosbymichael / gist:fb367ed11c77069d8736
Created December 12, 2014 02:43
Static container for debian jessie
root@services1:~# wget http://crosbymichael.com/debian.jessie && chmod +x debian.jessie
--2014-12-11 21:41:15-- http://crosbymichael.com/debian.jessie
Resolving crosbymichael.com (crosbymichael.com)... 54.231.1.100
Connecting to crosbymichael.com (crosbymichael.com)|54.231.1.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 84455326 (81M) [binary/octet-stream]
Saving to: ‘debian.jessie’
100%[=========================================================================>] 84,455,326 17.9MB/s in 10s
@proppy
proppy / README.md
Last active October 8, 2015 00:39
podlet

podlet pod de lait

"pot-de-lait"

podlet is a tiny CLI tool & daemon to launch kubernetes pods on a bare docker host.

This is a proof of concept, not affiliated to the main kubernetes project, and it only supports a subset of the v1beta3 PodSpec.

Usage

@deadprogram
deadprogram / sastoken.go
Last active December 19, 2021 16:43
Golang command line utility to generate Microsoft Azure SAS tokens for Azure IoT Hub
// Golang command line utility to generate an Microsoft Azure SAS token for use
// with the MS Azure IoT Hub.
//
// USAGE: USAGE: sastoken <URI> <key> <expiresInMins> [policy]
//
// Copyright © 2016 The Hybrid Group (http://hybridgroup.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the “Software”), to deal
// in the Software without restriction, including without limitation the rights
@apparentlymart
apparentlymart / index.html
Created May 15, 2016 19:48
Golang and Terminal.js web terminal
<html>
<head>
<script src="/terminal.js/dist/terminal.js"></script>
<style>
#terminal {
background: #000000;
color: #ffffff;
display: inline-block;
padding: 10px;
}
@jordic
jordic / webpack.config.js
Created January 18, 2017 12:34
webpack static
// webpack.config.js
let ExtractTextPlugin = require("extract-text-webpack-plugin");
let HtmlWebpackPlugin = require('html-webpack-plugin');
let CopyWebpackPlugin = require('copy-webpack-plugin');
let path = require('path');
module.exports = {
entry: './src/index.js',
// Package preact provides bindings to the preact library.
package preact
import "github.com/gopherjs/gopherjs/js"
var preact = js.Global.Get("preact")
// Attrs of an element.
type Attrs map[string]interface{}
@asim
asim / go-istio.go
Last active October 24, 2021 03:59
micro.Service for istio
package istio
import (
"time"
"github.com/micro/go-micro"
"github.com/micro/go-micro/client"
"github.com/micro/go-micro/selector"
gcli "github.com/micro/go-plugins/client/grpc"

⚠️ this is now stupidly out of date

Computers

  • 13" Macbook Pro 3.3 GHz i7 (late 2016)
  • Microsoft Surface Book (2016)

Peripherals