Skip to content

Instantly share code, notes, and snippets.

Avatar

Shane O'Grady shaneog

View GitHub Profile
@shaneog
shaneog / fb-ad-clean.js
Last active Oct 16, 2020
Clean Facebook Ad Preferences
View fb-ad-clean.js
// This script will remove all Interests and Advertisers from your Facebook profile
//
// Instructions
//
// Go to: https://www.facebook.com/ads/preferences/
//
// Open the browser console
//
// Paste the following code into the console and execute it
@shaneog
shaneog / setup.sh
Created Mar 20, 2018
GCE install for Buildkite Agent v3 (Beta)
View setup.sh
#!/usr/bin/env bash
set -eo pipefail
DATE=$(date +%Y%m%d-%H%M%S)
GROUP_NAME="buildkite-agent"
TEMPLATE_NAME="${GROUP_NAME}-${DATE}"
# Builder Group
gcloud compute instance-templates create "${TEMPLATE_NAME}-builder" \
@shaneog
shaneog / nginx.yaml
Created May 23, 2017 — forked from mikejk8s/nginx.yaml
full nginx ingess + ssl
View nginx.yaml
apiVersion: v1
kind: Service
metadata:
name: nginx-ingress
spec:
loadBalancerIP: xxxxxxx
type: LoadBalancer
ports:
# - port: 80
# name: http
View destroy_all_software_downloader.py
#!/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 Oct 10, 2016 — forked from mlafeldt/postmortem.md
Example Postmortem from SRE book, pp. 487-491
View postmortem.md

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym
@shaneog
shaneog / strap.sh
Last active Sep 22, 2016
My custom strap.sh file
View strap.sh
#!/bin/bash
#/ Usage: bin/strap.sh [--debug]
#/ Install development dependencies on Mac OS X.
set -e
# Keep sudo timestamp updated while Strap is running.
if [ "$1" = "--sudo-wait" ]; then
while true; do
mkdir -p "/var/db/sudo/$SUDO_USER"
touch "/var/db/sudo/$SUDO_USER"
@shaneog
shaneog / toggle-alfred-theme.bash
Last active Jun 1, 2016 — 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.
View toggle-alfred-theme.bash
#!/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...
View Trello product management in Thoughtbot.md

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."

View Template-README-for-containers.md

Docker Container Name

A one paragraph description about the container.

Getting Started

These instructions will cover usage information and for the docker container

Prerequisities

View Good-CONTRIBUTING.md-template.md

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