Skip to content

Instantly share code, notes, and snippets.

View mgreensmith's full-sized avatar

Matt Greensmith mgreensmith

View GitHub Profile
-- Great stuff at https://github.com/cmsj/hammerspoon-config
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
mgreensmith / 1-pr_open.json
Last active August 31, 2017 16:34
Github PR webhook payloads.
{
"action":"opened",
"number":1,
"pull_request":{
"url":"https://api.github.com/repos/mgreensmith/testrepo/pulls/1",
"id":138709392,
"html_url":"https://github.com/mgreensmith/testrepo/pull/1",
"diff_url":"https://github.com/mgreensmith/testrepo/pull/1.diff",
"patch_url":"https://github.com/mgreensmith/testrepo/pull/1.patch",
"issue_url":"https://api.github.com/repos/mgreensmith/testrepo/issues/1",
@mgreensmith
mgreensmith / devopsdayspdx-slidemark.md
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 https://slidemark.alfordmedia.com 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 https://slidemark.alfordmedia.com at any time to reenter your
@mgreensmith
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 hangops.slack.com by gabe@abinante.com
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
mgreensmith / Finding a Valuable Startup Ops Hire.md
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 http://www.heavybit.com/library/video/2015-02-24-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 (https://keybase.io/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
end
end
@mgreensmith
mgreensmith / dockernews.html
Last active August 29, 2015 14:05
Dockernews
<html>
<head>
<title>Dockernews</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<div class="row">
<h3>Dockernews</h3>
@mgreensmith
mgreensmith / Slack_solarized_themes
Last active December 21, 2023 19:29
Solarized themes for Slack
Solarized
#FDF6E3,#EEE8D5,#93A1A1,#FDF6E3,#EEE8D5,#657B83,#2AA198,#DC322F
Solarized Dark
#073642,#002B36,#B58900,#FDF6E3,#CB4B16,#FDF6E3,#2AA198,#DC322F