Skip to content

Instantly share code, notes, and snippets.

View mgreensmith's full-sized avatar

Matt Greensmith mgreensmith

View GitHub Profile
-- Great stuff at
local hyper = {"ctrl", "alt", "cmd"}
local laptopScreen = "Color LCD" -- 1440 x 900
local thunderboltScreen = "DELL P2715Q"
-- Defines for screen watcher
local screenWatcher = nil
local lastNumberOfScreens = #hs.screen.allScreens()
mgreensmith / 1-pr_open.json
Last active August 31, 2017 16:34
Github PR webhook payloads.
mgreensmith /
Last active July 31, 2017 17:38
DevOpsDays Portland SlideMark Instructions

SlideMark is a system to allow attendees to capture high-quality images of presentation slides, optionally with notes attached, to be emailed to the user at the conclusion of the conference. It is a third-party product that is being beta tested at DevOpsDays PDX; the idea is to eliminate the need for attendees to take photographs of slides on screen by providing easy access to higher-quality images without affecting the experience of other attendees.

To use SlideMark:

  • During the conference (this link will not work until the start of DevOpsDays PDX) visit to enter your email address and click the Submit button.
  • On the device of your choice (SlideMark is optimized for smartphones but should work with any reasonably modern Web browser), read the confirmation email and click on the confirmation link in that email. If you did not receive the confirmation email, please check your junk mail folder. You can return to at any time to reenter your
mgreensmith / gocd-readiness-check.rb
Last active January 30, 2016 00:12
GoCD circuit breaker / readiness check script.
#!/usr/bin/env ruby
# Copyright (c) 2016 Matt Greensmith and Cozy Services Ltd.
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
# Software, and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
# Originally posted to by
import random
Prefixlist = ['Viceroy','Commandant', 'Grand Poo-Bah', 'Archon', 'Duke', 'Chancellor', 'President', 'Marquis', 'Earl', 'Director', 'Chair', 'Head', 'Senior Director']
Prefixlist2 = ['Principal','Chief','Head','Lead', 'Senior', 'Master']
Joblist = ['Solutions', 'Systems', 'Network', 'Security', 'Compliance', 'Information', 'Scalability']
mgreensmith / Finding a Valuable Startup Ops
Last active August 29, 2015 14:17
Finding a Valuable Startup Ops Hire - excerpted transcript from "Hiring a Tech Ops Team" talk by Charity Majors

Finding a Valuable Startup Ops Hire

What qualities make for a good startup hire in general and what are the special challenges of the first hire for the team, or, the foundational member of any new team. This really applies pretty broadly to any type of team, not necessarily ops in particular.

So if you're a founder, and you're saying, "I need an ops team. I'm going to sit back and think about the ideal operations engineer and the list of skills and expertise that I would really like them to possess," and your list probably looks something like this.

Obviously, you want them to be an expert at Ruby or Python, some deep systems knowledge is great. They should also know how to recompile kernel modules. It would be super awesome if they were good at security, and they know how to do TripWire and all that shit.

They should be a great networking engineer. It would be really great if they know how to sniff TCP packets and unpack them, obviously they need to know Chef and Puppet. All this shit.

Keybase proof

I hereby claim:

  • I am mgreensmith on github.
  • I am mgreensmith ( on keybase.
  • I have a public key whose fingerprint is 4653 A366 1ADF 9C40 2B11 A897 7C31 F1A8 7CFC 5BA0

To claim this, I am signing this object:

module Comrad
module Config
atttr_accessor :config
@config ||= load_config
def self.load_config
# load from file
mgreensmith / dockernews.html
Last active August 29, 2015 14:05
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="//">
<div class="container">
<div class="row">
mgreensmith / Slack_solarized_themes
Last active May 2, 2024 18:14
Solarized themes for Slack
Solarized Dark