Skip to content

Instantly share code, notes, and snippets.

View kevinawoo's full-sized avatar

Kevin Woo kevinawoo

View GitHub Profile
@kevinawoo
kevinawoo / swagger-pipelinetemplates-issue.yml
Created August 18, 2020 02:19
swagger-pipelinetemplates-issue
---
swagger: "2.0"
info:
title: "Spinnaker API"
contact: {}
host: "localhost"
basePath: "/"
tags:
- name: "v-2-pipeline-templates-controller"
description: "V 2 Pipeline Templates Controller"

inline code: 👍 should see thumbsup

codeblock:

👍 thumbs up
👯‍♀️ women dancers 
@kevinawoo
kevinawoo / stable-annotations.yaml
Created February 14, 2020 20:14
stable-annotations.yaml
# At a minimum, all we care about is when it's stable/succesful so we know if a stage should continue
# if one of stable.* is TRUE, then it's stable!
stability.spinnaker.io/stable/handler: Field
stability.spinnaker.io/stable/field: ".status.status=successful"
stability.spinnaker.io/stable.1/handler: Field
stability.spinnaker.io/stable.1/field: ".status.status=ok"
stability.spinnaker.io/stable.2/handler: Field
stability.spinnaker.io/stable.2/field: ".status.status=yay"
# another way of handling it maybe to just do comma separated conditions (same for failed status)
@kevinawoo
kevinawoo / stability.yaml
Last active February 14, 2020 19:46
stability.yaml
# At a minimum, all we care about is when it's stable/succesful so we know if a stage should continue
# if one of stable.* is TRUE, then it's stable!
stability.spinnaker.io/stable/handler: Field
stability.spinnaker.io/stable/field: ".status.status=successful"
stability.spinnaker.io/stable.1/handler: Field
stability.spinnaker.io/stable.1/field: ".status.status=ok"
stability.spinnaker.io/stable.2/handler: Field
stability.spinnaker.io/stable.2/field: ".status.status=yay"
# another way of handling it maybe to just do comma separated conditions (same for failed status)
@kevinawoo
kevinawoo / webinar-script.sh
Created October 31, 2019 16:17
Using the Operator to deploy Spinnaker
# Create a directory for the Spinnaker Operator YML files downloaded from https://github.com/armory-io/spinnaker-operator/releases/download/v0.1.0/manifests.tgz
mkdir spinnaker-operator
cd spinnaker-operator
VERSION=v0.2.0 && curl -L https://github.com/armory-io/spinnaker-operator/releases/download/$VERSION/manifests.tgz | tar -xvf -
# Apply the Spinnaker Operator Custom Resource (CRD)
# A Kubernetes custom resource is an extension of the Kubernetes API which represents a customization of a particular Kubernetes installation.
@kevinawoo
kevinawoo / block_personal_appts
Created February 6, 2018 22:38 — forked from ttrahan/block_personal_appts
Google Apps Script to automatically create, edit and delete events on work calendar for personal calendar events. Instructions on how to set up can be found at https://medium.com/@willroman/auto-block-time-on-your-work-google-calendar-for-your-personal-events-2a752ae91dab
function sync() {
var id="XXXXXXXXXX"; // CHANGE - id of the secondary calendar to pull events from
var today=new Date();
var enddate=new Date();
enddate.setDate(today.getDate()+7); // how many days in advance to monitor and block off time
var secondaryCal=CalendarApp.getCalendarById(id);
var secondaryEvents=secondaryCal.getEvents(today,enddate);
schema: "1"
id: myFirstBareBones
protect: true
metadata:
name: Bare Bone Pippeline Template
description: A generic application bake & tag pipeline.
owner: example@example.com
scopes: [global]
variables:
#!/bin/bash
set -e
root=$PWD
# This loads NVM
[[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh
[[ -s /usr/local/opt/nvm/nvm.sh ]] && . "/usr/local/opt/nvm/nvm.sh"
@kevinawoo
kevinawoo / nodemon.json
Last active June 29, 2017 20:06
nodemon.js
{
"restartable": "rs",
"colours": true,
"execMap": {
"py": "python",
"rb": "ruby",
"sh": "bash"
},
"watch": [
"**/*"

Git Commit Messages

  • Messages answers the following sentence:

    Apply this commit to _______________

  • Use the present tense ("Add feature" not "Added feature")
  • Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
  • Limit the first line to 72 characters or less
  • Reference issues and pull requests liberally
  • When only changing documentation, include [ci skip] in the commit description
  • Consider starting the commit message with an applicable emoji: