Skip to content

Instantly share code, notes, and snippets.

🕶
working without pants.

Joe Julian joejulian

🕶
working without pants.
Block or report user

Report or block joejulian

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
@joejulian
joejulian / markdown.md
Created Jun 13, 2019
ordered list with code blocks
View markdown.md

Ordered List with Code Blocks

This is an example of how to do ordered lists with code blocks and example of how not to do ordered lists with code blocks.

Correct Example

  1. This is an ordered list's first element.

  2. This is the second element and, despite starting with a 1, will be numbered 2.

View main.tf
# Specify the provider and access details
provider "aws" {
region = "${var.aws_region}"
}
data "aws_ami" "centos" {
owners = ["679593333241"]
most_recent = true
filter {
name = "name"
View target_blank.js
// ==UserScript==
// @name Jira Links in new tab
// @description Target _blank
// @match https://jira.mesosphere.com/*
// @grant none
// @version 1.0.1
// ==/UserScript==
function init() {
$("a")
@joejulian
joejulian / target_blank.js
Created Dec 6, 2018
Make Jira open links in a new tab.
View target_blank.js
// ==UserScript==
// @name Jira Links in new tab
// @description Target _blank
// @match https://jira.mesosphere.com/*
// @grant none
// @version 1.0.1
// ==/UserScript==
function init() {
$("a")
View provider-components.yaml
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: clusterapi-controllers
labels:
api: clusterapi
spec:
replicas: 1
template:
View host_path.storageclass.yaml
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: gluster.kube
namespace: kube-system
annotations:
storageclass.kubernetes.io/is-default-class: 'true'
provisioner: kubernetes.io/host-path
@joejulian
joejulian / clusterapi.yaml
Created Aug 14, 2018
Install cluster-api controller
View clusterapi.yaml
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app: etcd
name: etcd-clusterapi
spec:
podManagementPolicy: OrderedReady
replicas: 1
View gist:5fb226fc113a053ec9bbfefb434bdf37
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"extensions/v1beta1","kind":"Ingress","metadata":{"annotations":{"kubernetes.io/ingress.class":"traefik"},"labels":{"app":"production","build_id":"73712092","pipeline_id":"23524955"},"name":"production","namespace":"blog"},"spec":{"rules":[{"host":"joejulian.name","http":{"paths":[{"backend":{"serviceName":"production","servicePort":5000},"path":"/"}]}}],"tls":[{"hosts":["joejulian.name"],"secretName":"production-tls"}]}}
kubernetes.io/ingress.class: traefik
creationTimestamp: 2018-01-26T04:56:43Z
generation: 1
labels:
View generate-yaml.sh
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
OUTPUT_DIR=out
mkdir -p ${OUTPUT_DIR}
BOOTSTRAP_DIR=bootstrap_scripts
View kube-flannel.yaml
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: flannel
namespace: kube-system
---
kind: ConfigMap
apiVersion: v1
metadata:
You can’t perform that action at this time.