Skip to content

Instantly share code, notes, and snippets.

View jeffdc's full-sized avatar

Jeff Clark jeffdc

View GitHub Profile

User Story Mapping - Book Notes

Summary of the book User Story Mapping by Jeff Patton

Front Matter

  • Story mapping provides the big picture that a pile of stories often misses.
  • Stories are meant to spark conversations and shared understanding
  • If you want to create effective software to support an activity, then you need to look to those build the software as a vital source of ideas for its capabilities, because it’s programmers who know best what software can do. Programmers need to understand what their users are trying to achieve and should collaborate in building the stories that capture those user’s needs.
  • Its entirely reasonable that programmers build software one feature at a time. However if this same approach is taken to design the behavior and scope of a program then a monster is produced.
  • Shared docs are not shared understanding
  • Good documents are like vacation photos
@jeffdc
jeffdc / deleteGHdeployments.sh
Created January 27, 2021 04:50
Delete Deployments From GitHub Repo
# There is no UI to delete deployments from a GitHub repo.
# They are annoying and confusing to have stick around if you are not actually using them.
# So here is a script to delete them ALL.
# USE AT YOUR OWN RISK!!!
# N.B. this script uses jq which is not standard so you must install it. It is awesome.
# https://stedolan.github.io/jq/
#!/bin/bash
@jeffdc
jeffdc / Debugging Docker Builds.md
Last active November 14, 2020 21:36
Debugging Docker Builds

If a Docker build fails it can be a PITA to figure out what is going on. This can help.

In the build output, look for the last layer that was used before the failure. The line will look something like this:

---> Running in fec66b09f2e8

Copy that identifer.

Then run (replacing the id with whatever yours is) the name of the image can be anything I used temp so if I forget to delete it, it will be obvious later that it is indeed o to delete it:

@jeffdc
jeffdc / covid19 dataset get it going hacks.sh
Created March 22, 2020 17:18
bunch of hacks and steps that I had to use to get timescale+postgresql+postgis working on my mac with brew
#!/bin/bash
# must use postgres11 not 12 as Timescale does not yet support 12 and brew defaults to 12
brew install postgresql@11
brew install timescaledb
# remove postgres 12 to avoid headaches and confusion - it is installed by timescale as a dependency :headdesk:
brew uninstall --ignore-dependencies postgresql
brew services start postgresql@11
@jeffdc
jeffdc / git-big.py
Created March 24, 2016 18:14
python based shell command to find large files in a git repo
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Python script to find the largest files in a git repository.
# The general method is based on the script in this blog post:
# http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/
#
# The above script worked for me, but was very slow on my 11GB repository. This version has a bunch
# of changes to speed things up to a more reasonable time. It takes less than a minute on repos with 250K objects.
@jeffdc
jeffdc / git-aliases
Last active October 22, 2017 16:43
git aliases that I use
[alias]
co = checkout
st = status
rv = remote --verbose
pom = pull origin master
pod = pull origin develop
pum = pull upstream master
pud = pull upstream develop
pusom = push origin master
pusod = push origin develop
@jeffdc
jeffdc / gist:eb9c0768f3ced0d67e3b
Created April 16, 2015 03:19
troublesome traceroutes on FiOS
traceroute to google.com (63.88.73.148), 64 hops max, 52 byte packets
1 10.0.1.1 (10.0.1.1) 1.114 ms 1.722 ms 0.820 ms
2 172.16.1.1 (172.16.1.1) 1.375 ms 1.687 ms 1.380 ms
3 l100.washdc-vfttp-128.verizon-gni.net (96.255.55.1) 7.801 ms 8.437 ms 9.486 ms
4 g1-6-1-7.washdc-lcr-21.verizon-gni.net (130.81.37.244) 10.631 ms 9.480 ms 9.514 ms
5 * so-13-1-0-0.res-bb-rtr1.verizon-gni.net (130.81.22.54) 49.902 ms
so-12-1-0-0.res-bb-rtr1.verizon-gni.net (130.81.151.230) 42.081 ms
6 * * *
7 0.ae3.gw2.iad6.alter.net (140.222.227.179) 11.736 ms
0.ae5.gw2.iad6.alter.net (140.222.227.23) 11.498 ms
@jeffdc
jeffdc / either.scala
Last active August 29, 2015 14:06
Problem with types while working Chapter 4 of Functional Programming in Scala
package com.nothoo.ch4
// hide stuff from standard library -- looks to be very hard to convince IDEA that we are nut using these types
import scala.{Either => _, Option => _, Some => _, None => _, Left => _, Right => _, _}
sealed trait Either[+E,+A] {
// 4.6
def map[B](f: A => B): Either[E,B] = this match {
case l@Left(_) => l
case Right(x) => Right(f(x))
@jeffdc
jeffdc / Crash 1
Created July 30, 2011 15:44
Ingredients Lion Crash 1-4
Process: Ingredients [18086]
Path: /Applications/Ingredients.app/Contents/MacOS/Ingredients
Identifier: net.fileability.ingredients
Version: 1.1b1 (1.0)
Code Type: X86-64 (Native)
Parent Process: launchd [182]
Date/Time: 2011-07-30 11:17:04.338 -0400
OS Version: Mac OS X 10.7 (11A511)
Report Version: 9