Skip to content

Instantly share code, notes, and snippets.

Git commands sufficient for 99.9% of the time:

git status
git add -A
git branch
git checkout [-b]
git rebase [-i] master // interactive rebase is amazing
git reset HEAD [file] // when I accidentally add something
git reset HEAD^1 // for when you accidentally commit on master
@nicl
nicl / branching.md
Last active August 26, 2020 16:38
Discussion on branching in DCR
@nicl
nicl / main.go
Last active May 11, 2022 13:10
Exploration of processing writes with batching, throttling, and a global timeout
package main
import (
"fmt"
"time"
)
/* The requirements are:
1. process the list in batches
2. take into account unprocessed items in the dynamo response
@nicl
nicl / mobile-example.go
Created May 25, 2022 14:08
Example of channels, etc.
package main
import (
"context"
"fmt"
"math/rand"
"time"
)
// Pretend we are finding tokens from the db and stream them over a channel.