Skip to content

Instantly share code, notes, and snippets.

@shaneog
shaneog / stdlib.sh
Created January 18, 2023 01:49 — forked from anonymous/stdlib.sh
aws_ecr_curl() {
login_cmd=$(aws ecr get-login)
username=$(echo "$login_cmd" | cut -d " " -f 4)
password=$(echo "$login_cmd" | cut -d " " -f 6)
endpoint=$(echo "$login_cmd" | cut -d " " -f 9)
args=("$@")
args_length=${#args[@]}
args_last=${args[$args_length-1]}
unset 'args[${args_length}-1]'
@shaneog
shaneog / nginx.yaml
Created May 23, 2017 21:44 — forked from mikejk8s/nginx.yaml
full nginx ingess + ssl
apiVersion: v1
kind: Service
metadata:
name: nginx-ingress
spec:
loadBalancerIP: xxxxxxx
type: LoadBalancer
ports:
# - port: 80
# name: http
#!/usr/bin/python
# encoding: utf-8
# Based off the script from https://gist.github.com/Paaskehare/3949299
# @author: Ash Ramesh (27/10/2016)
import cookielib
import urllib
import urllib2
import re
@shaneog
shaneog / postmortem.md
Created October 10, 2016 13:20 — forked from mlafeldt/postmortem.md
Example Postmortem from SRE book, pp. 487-491

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym
@shaneog
shaneog / toggle-alfred-theme.bash
Last active June 1, 2016 13:37 — forked from deanishe/toggle-alfred-theme.bash
Automatically toggle Alfred dark/light themes at sunset/sunrise. You need to edit the location settings before use.
#!/bin/bash -e
# Wrapper for the toggle_alfred_theme.py script at
# https://gist.github.com/deanishe/ce442c3a768adedc9c39
# (where this script also comes from)
#
# The purpose of this wrapper is to enable you to update the Python script
# without having to edit the script to change the settings each time. You keep
# them in here instead, and this script should hopefully prove dumb enough
# to require little updating...

Product management process with Trello

A Trello board is a software equivalent of a physical wall with columns of sticky notes. In Trello terminology, the wall is called a "board." The columns are called "lists." The sticky notes in columns are called "cards."

No two products are the same, so flexibility in the product management process is important. Trello responds well to changing the structure of the process "on the fly."

Docker Container Name

A one paragraph description about the container.

Getting Started

These instructions will cover usage information and for the docker container

Prerequisities

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@shaneog
shaneog / README-Template.md
Created March 29, 2016 12:23 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisities

@shaneog
shaneog / am-i-ready-to-open-source-this.md
Created March 29, 2016 12:23 — forked from PurpleBooth/am-i-ready-to-open-source-this.md
Checklist to see if your open source repo is primetime ready!

Am I ready to Open Source This?

The checklist:

  1. A readme following a good template
  2. A contributing.md with a code of conduct.
  3. A license
  4. Travis configuration
  5. A way for people to raise issues
  6. Link to it