Skip to content

Instantly share code, notes, and snippets.

@chainlink
chainlink / DeployToKube.md
Last active May 30, 2019 16:11
Deploying a new project to kubernetes

Steps

  1. Create your repo

  2. Add Code

  3. Add Dockerfile (example below, feel free to remix)

FROM node:8
@chainlink
chainlink / configmap.yaml
Last active May 29, 2019 21:22
traefik ingress
# Source: traefik/templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: release-name-traefik
labels:
app: traefik
chart: "traefik-1.68.1"
release: "release-name"
heritage: "Tiller"
@chainlink
chainlink / gcrgc.sh
Created February 20, 2018 12:14 — forked from 27Bslash6/gcrgc.sh
Script to clean up Google Container Registry images pushed before a particular date
#!/bin/bash
# Copyright © 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
#include <Adafruit_NeoPixel.h>
#define PIN 6
#define N_LEDS 144
Adafruit_NeoPixel strip = Adafruit_NeoPixel(N_LEDS, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin();
}
@chainlink
chainlink / 0_reuse_code.js
Created March 12, 2014 17:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console