Skip to content

Instantly share code, notes, and snippets.

@mattstratton
mattstratton / mynewdevops.md
Last active June 10, 2022 19:34
My New DevOps

Stratton: Yeah, I was at Velocity last week, speaker lounge, and I got me a conversation with Jez Humble.

Cheslock: Hey browski, two sugar free red bulls over here.

Stratton: You want to be on a podcast? You gotta make sure you’re ready.

Cheslock: You know what this is? This is my new fucking continuous delivery pipeline. You know what that means? I’m delivering some fucking software tonight. My boys? They’re deploying software too. They’ve all got the same pipeline too. They’re deploying some fucking software tonight.

I’m going to test every piece of code that hits that git repo. I’m going to test it until my fucking spec tests fall off.

@mattstratton
mattstratton / matt-stratton-speaker-rider.md
Last active January 7, 2022 19:02
Matt Stratton's Speaker Rider

Speaker Rider

by Matt Stratton

Last updated 4 November 2021

What is a speaker rider?

As speaking comes with immense privilege, I have crafted a speaker rider to set expectations and boundaries around my engagement. I am grateful to all the conference organisers who have brilliantly hosted me. I would love to continue to exercise this privilege to speak at conferences, and use this privilege to make the landscape more accessible and beneficial to tech's most historically excluded and marginalised communities.

Considerations

😫 I provide a lot of explanations for those of you who never had to consider these things. Most thoughtful conferences I've attended check most of these boxes intrinsically, particularly when conference runners are experienced speakers. They get it.

@mattstratton
mattstratton / main.go
Last active July 2, 2021 19:39
Using AWS Infinidash with Pulumi (golang example)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/i8h"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
@mattstratton
mattstratton / Brewfile
Last active April 9, 2020 18:32
Brewfile
# Taps
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/core"
tap "homebrew/cask-drivers"
tap "homebrew/services"
tap "devopsdays/tap"
tap "github/gh"
tap "heroku/brew"
@mattstratton
mattstratton / custom-castanet-colors-md
Last active November 16, 2019 02:59
Hacking a custom color scheme for the Castanet Hugo theme
If you use the [Castanet](https://www.github.com/mattstratton/castanet) theme for Hugo you can now have your own special theme (i.e., instead of "orange" or "blue", you want "my-cool-podcast" with your own variable colors). Here's kind of how to do it - I'll probably write a blog explaining it much better sometime.
Assuming you have the `castanet` theme inside of `themes` in your site's directory, here's the stuff you need to create/do/install. (for purposes of example, let's say your hugo site is called `hugocast`)
1. Install `node` and `npm` (you're on your own to do this)
1. Copy the `hugocast/themes/castanet/package.json` to `hugocast/package.json`
1. Feel free to edit the `hugocast/package.json` file to use your project's name and repo, but it's not strictly required, but it's probably a good practice.
1. Create the directory `hugocast/gulp/tasks`
1. Copy `hugocast/themes/castanet/gulpfile.js` to `hugocast/gulpfile.js`
1. Copy the contents of `sass.js` in this gist to `hugocast/gulp/tasks/sass.js` (re
@mattstratton
mattstratton / README.md
Last active April 24, 2018 00:22
Docker For DevOpsDays.org

The shell script (hugoserver.sh) currently runs. The PowerShell script (hugoserver.ps1) is throwing errors, as displayed in the output.log in this gist.

To test, run git clone git@github.com:devopsdays/devopsdays-web.git and then run one of the above scripts in the cloned directory (note: the hugoserver.sh script is already part of the directory; the PowerShell script is not).

The result should look like this, if it works:

 ~/src/devopsdays-web/ [master*] ./hugoserver.sh
hugo-server
hugo-server
@mattstratton
mattstratton / forgot-about-clay.md
Last active December 20, 2017 15:55
Forgot About Clay

"Forgot About Clay"
(feat. Patrick DeBois)


[Andrew Clay Shafer]
Y'all know me still the same OG
But I been low key
Hated on by most of these ops
With no skills, no tests, no quality, no empathy
No CI, no stories, and no speaker fees
Mad at me cause

@mattstratton
mattstratton / golang.md
Last active October 6, 2017 22:35
Resources for golang dev

Go Resources

This is just a collection of things that I have found useful in my journey through learning/working with Go.

Tools

  • goreleaser - deploy go applications to github releases. Also magically makes brew taps and supports FPM.
  • go-github-release - a toolchain around releasing code. I use a combination of the stuff in here along with goreleaser for devopsdays-cli
  • GoConvey - Write awesome tests and see them in the browser
  • goreporter - Generate Go quality test reports. Cry at how awful you are.
  • gorram - It's like go run for a function
@mattstratton
mattstratton / pipeline.md
Last active January 5, 2017 20:09
Wacky gulp asset pipeline using hugo and netlify and contributors without npm and gulp

Criteria

Be able to process the assets for a hugo based website using gulp, and serve them via Netlify. Contributors to the content of this site cannot be assumed to have anything installed locally besides the hugo binary.

Proposed Approach

File structure of main repo

.
+-- content
+-- data
+-- static