Skip to content

Instantly share code, notes, and snippets.

Nick Glynn 17twenty

Block or report user

Report or block 17twenty

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
17twenty /
Created Jul 24, 2019
Top tips for working remotely

Be as available as possible This is probably the best piece of advice I received from a friend prior to starting my new job. Things move quickly back at the home office, and since you’re not there, there’s a built-in delay for someone wishing to communicate with you.

If it always takes hours for someone to get your ear for just a minute, you’ll build a reputation as someone who’s “never around”–even if only subconsciously–among your coworkers.

As a remote employee, you have to work harder at being available to avoid the impression that you’re never available.

Strive to build a reputation as someone who is quick to respond. Be eager to hear the latest developments on projects so that you’re never out of sync with everyone else in your office.

17twenty /
Created Jul 22, 2019
Using golang-migrate AKA mattes/migrate with Docker, Postgres and creating new schemas.

Using golang-migrate AKA mattes/migrate with Docker, Postgres and creating new schemas.


We use the golang-migrate tool (formerly known as mattes/migrate) - build it with postgres support.

$ go get -v -u -tags 'postgres'
$ migrate -h
Usage: migrate OPTIONS COMMAND [arg...]
17twenty / testing.go
Created Aug 15, 2018
Make your life easier by copying these into your Golang tests package
View testing.go
import (
// assert fails the test if the condition is false.
func assert(tb testing.TB, condition bool, msg string, v ...interface{}) {
17twenty /
Last active Aug 9, 2018
Getting Oracle Enterprise in a Container AND installing client libraries

Team member was fighting trying to get a docker container for Oracle setup on his Mac as there's a lot of confusing and conflicting information out there. This was tried and tested!

You will need to aquire access to the container via the standard Oracle data grab here.

$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to to create one.
17twenty /
Created Jun 18, 2018 — forked from kevin-smets/
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry


Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!


View sigdemo.go
package main
import (
17twenty / bash_profile
Last active Oct 3, 2018
My bash_profile for MacOS
View bash_profile
if [ -f /usr/local/etc/bash_completion ]; then
. /usr/local/etc/bash_completion
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
17twenty /
Created Oct 13, 2017
Update all git repos in a directory
#!/usr/bin/env bash
# Store PWD (could use pushd/popd but meh)
echo -e "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"
# Find all git repositories and update to master
for i in $(find . -name ".git" | cut -c 3-); do
echo "";
17twenty / demo.go
Created Sep 19, 2017
Simple demo of setting up the usage preamble
View demo.go
package main
import (
var (
17twenty / docker-compose.yml
Created Sep 14, 2017
As a way to get Zookeeper / Kafka AND Kafka Manager working together in docker compose...
View docker-compose.yml
version: '2'
hostname: zookeeper
image: wurstmeister/zookeeper
- "2181:2181"
hostname: kafka
image: wurstmeister/kafka:
You can’t perform that action at this time.