Skip to content

Instantly share code, notes, and snippets.

View bkonkle's full-sized avatar

Brandon Konkle bkonkle

View GitHub Profile
@bkonkle
bkonkle / .babelrc
Last active November 19, 2015 18:49
Babel Config
{
"presets": ["es2015-loose", "react"],
"plugins": ["transform-class-properties", "transform-object-assign"]
}
@bkonkle
bkonkle / snippets.cson
Last active January 29, 2016 17:27
Atom snippets for redux-actions
'constant':
prefix: 'const'
body: """
export const ${1:NAME} = '${2:app}/${3:reducer}/${1:NAME}'
"""
'action':
prefix: 'act'
body: """
export const ${1:name} = createAction(${2:ACTION})
@bkonkle
bkonkle / commons.js
Created May 1, 2016 16:50
commons.js
/* eslint-disable no-console,prefer-template */
const childProcess = require('child_process')
const findup = require('findup-sync')
const fs = require('fs')
const inquirer = require('inquirer')
const mkdirp = require('mkdirp').sync
const path = require('path')
function addToLocalRc(callback) {
const commonsDefault = path.join(__dirname, '..', '..', 'commons')
@bkonkle
bkonkle / dev-server.js
Created May 1, 2016 16:59
dev-server.js
/* eslint-disable no-console,prefer-template */
const chalk = require('chalk')
const devMiddleware = require('webpack-dev-middleware')
const express = require('express')
const hotMiddleware = require('webpack-hot-middleware')
const path = require('path')
const webpack = require('webpack')
function run() {
const PORT = process.env.PORT || 3000
@bkonkle
bkonkle / Client.purs
Last active September 14, 2016 05:21
Ygor build config for PureScript
module SelectFrom.Client (init) where
import Prelude
import Control.Monad.Eff (Eff)
import DOM (DOM)
import DOM.HTML (window)
import DOM.HTML.Document (body)
import DOM.HTML.Types (htmlElementToNode, htmlDocumentToDocument)
import DOM.HTML.Window (document)
import DOM.Node.Document (createElement) as Document
@bkonkle
bkonkle / _helpers.tpl
Created October 27, 2016 14:30
Helm template helpers
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 24 -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
@bkonkle
bkonkle / Chart.yaml
Last active October 27, 2016 14:43
Helm Chart.yaml example
name: node
version: 1.0.0
description: Chart for derivatives of the official Node images
keywords:
- node
- application
home: https://nodejs.org/en/
sources:
- https://github.com/kubernetes/charts
- https://github.com/docker-library/node
@bkonkle
bkonkle / values.yaml
Last active October 27, 2016 14:59
Helm values.yaml file example
imageName: "node"
imageTag: "boron"
cpu: 100m
memory: 256Mi
port: 3000
replicas: 1
@bkonkle
bkonkle / app-rc.yaml
Last active October 27, 2016 14:59
Helm Replication Controller example
apiVersion: v1
kind: ReplicationController
metadata:
name: {{ template "fullname" . }}
labels:
app: {{ template "fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
spec:
@bkonkle
bkonkle / app-svc.yaml
Last active October 27, 2016 15:00
Helm Load Balancer example
apiVersion: v1
kind: Service
metadata:
name: {{ template "fullname" . }}
labels:
app: {{ template "fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
spec: