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 Aug 24, 2017
Docker - A Cheatsheet

Docker Cheatsheet

Docker Registries & Repositories

Login to a Registry

docker login
docker login localhost:8080
17twenty / mail.html
Created Aug 21, 2017
Email Markup for newsletters
View mail.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta name="viewport" content="width=device-width"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Signup for my newsletter</title>
<style type="text/css">
margin: 0 auto;
padding: 0;
17twenty / consulservicediscovery.go
Created Aug 4, 2017
Want to find things from your Golang apps in Consul?
View consulservicediscovery.go
package main
import (
consul ""
// Client provides an interface for getting data out of Consul
17twenty / ipmath.go
Created Jun 28, 2017
IP Address math
View ipmath.go
package ipmath
import (
//ToUInt32 converts an IPv4 address into
17twenty / ratelimitMyCopy.go
Created Jun 14, 2017
Demo of using x time rate RateLimiter
View ratelimitMyCopy.go
package main
import (
17twenty /
Created Mar 30, 2017
Wrapper script that can specify an ssh-key file with the Git command
# Wrapper script that can specify an ssh-key file with the Git command
# The MIT License (MIT) -
# Copyright (c) 2013 Alvin Abad
if [ $# -eq 0 ]; then
17twenty /
Last active Mar 23, 2017
Terraform Docker Injection - You can override the docker config this way - useful for custom BIP / CIDRs
# Fetch the AWS ECS Optimized Linux AMI. Note that if you've never launched this AMI before, you have to accept the
# terms and conditions on this webpage or the EC2 instances will fail to launch:
data "aws_ami" "ecs" {
most_recent = true
owners = ["amazon"]
filter {
name = "name"
17twenty / le-cert.rb
Created Mar 23, 2017 — forked from tobiasfeistmantl/le-cert.rb
Easy to use Ruby script to register and authorize new domains on Let's Encrypt and getting certificates for them. Call 'ruby le-new.rb' and follow the instructions. Install OpenSSL and the ACMEClient gem before!
View le-cert.rb
#!/usr/bin/env ruby
require 'acme-client'
rescue LoadError
abort 'MISSING GEM! You haven\'t installed the ACME client. Install the gem with the command \'gem install acme-client\'.'
require 'openssl'
require 'resolv'
17twenty / drop_encrypt.go
Created Mar 13, 2017 — forked from josephspurrier/drop_encrypt.go
Golang - Drag and Drop AES Encryption and Decryption
View drop_encrypt.go
package main
import (
17twenty / sysctl.conf
Created Mar 10, 2017
Make-a-da-linux-awesome - A simple sysctl setup to max out the awesomeness on Linux in a network configuration
View sysctl.conf
sysctl -w fs.file-max="9999999"
sysctl -w fs.nr_open="9999999"
sysctl -w net.core.netdev_max_backlog="4096"
sysctl -w net.core.rmem_max="16777216"
sysctl -w net.core.somaxconn="65535"
sysctl -w net.core.wmem_max="16777216"
sysctl -w net.ipv4.ip_local_port_range="1025 65535"
sysctl -w net.ipv4.tcp_fin_timeout="30"
sysctl -w net.ipv4.tcp_keepalive_time="30"
sysctl -w net.ipv4.tcp_max_syn_backlog="20480"
You can’t perform that action at this time.