Skip to content

Instantly share code, notes, and snippets.

:octocat:
Writing YAML + HCL and googling errors

Julien Bisconti veggiemonk

:octocat:
Writing YAML + HCL and googling errors
Block or report user

Report or block veggiemonk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@romkatv
romkatv / Pure style for Powerlevel10k.md
Last active Aug 15, 2019
Pure style for Powerlevel10k
View Pure style for Powerlevel10k.md

Powerlevel10k can generate the same prompt as Pure given the right configuration options.

pure

Installation

git clone https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
echo 'source ~/powerlevel10k/config/p10k-pure.zsh' >>! ~/.zshrc
@veggiemonk
veggiemonk / demo.sh
Last active Nov 15, 2018
Script for demo of Chaos Engineering with a service mesh
View demo.sh
kubectl create clusterrolebinding cluster-admin-binding \
--clusterrole=cluster-admin \
--user=$(gcloud config get-value core/account)
# export PATH=$PWD/bin:$PATH
kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml
helm template install/kubernetes/helm/istio --name istio --namespace istio-system \
@leidegre
leidegre / channel-test.js
Created Aug 21, 2018
Go channel abstraction for JavaScript
View channel-test.js
const { default: Channel } = require("./channel");
const timeout = 100;
async function unbuffered() {
const xs = [];
var ch = new Channel();
xs.push("start");
setTimeout(async () => {
xs.push("timeout");
@alexellis
alexellis / job.yaml
Last active Jun 26, 2019
Use a Kubernetes Job and Kaniko to build an OpenFaaS function from Git
View job.yaml
# Alex Ellis 2018
# Example from: https://blog.alexellis.io/quick-look-at-google-kaniko/
# Pre-steps:
# kubectl create secret generic docker-config --from-file $HOME/.docker/config.json
# Other potential optimizations (suggested by @errordeveloper)
# - Store "templates" in a permanent volume
# - Download source via "tar" instead of git clone
@alexellis
alexellis / README.md
Last active Oct 26, 2018
Getting started with Istio + OpenFaaS
View README.md

Deploy Istio on GKE

Set up 1-3 GKE nodes with Kubernetes 1.10.5

Turn off Calico/NetworkPolicy

Install the Istio CLI

Use helm to install Istio into your cluster using the "webhook admission controller"

@lizrice
lizrice / Vagrantfile
Last active Jul 19, 2019
Vagrant file for setting up a single-node Kubernetes cluster that I can access from my desktop. Read more: https://medium.com/@lizrice/kubernetes-in-vagrant-with-kubeadm-21979ded6c63
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# This script to install Kubernetes will get executed after we have provisioned the box
$script = <<-SCRIPT
# Install kubernetes
apt-get update && apt-get install -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
@enricofoltran
enricofoltran / main.go
Last active Aug 22, 2019
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
View main.go
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@ryanj
ryanj / Developing-Locally-with-Kubernetes.html
Last active Jun 2, 2018
Developing Locally with Kubernetes from #Kubecon2017 in Austin, TX http://bit.ly/kubecon-dev
View Developing-Locally-with-Kubernetes.html
<section>
<section id="at-Kubecon-2017">
<img style="width:100%" src="https://i.imgur.com/znrD3yq.jpg" alt="Developing Locally with Kubernetes - http://bit.ly/kubecon-dev" />
<br/>
<a href="https://youtu.be/_W6O_pfA00s">youtu.be/_W6O_pfA00s</a>
</section>
<section data-background-transition='fade' data-background='black' id='presented-by-ryanj'>
<p>presented by <a href="http://twitter.com/ryanj/">@ryanj</a>, Developer Advocate at Red Hat</p>
<p class='fragment fade-up'><a href="http://twitter.com/ryanj/"><img alt="ryanj" src="http://ryanjarvinen.com/images/ryanj-mestrefungo-com.gif" style="width:48%"/></p>
</section>
@jessfraz
jessfraz / boxstarter.ps1
Last active Aug 25, 2019
Boxstarter Commands for a new Windows box.
View boxstarter.ps1
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
You can’t perform that action at this time.