Skip to content

Instantly share code, notes, and snippets.

View nearapogee's full-sized avatar

Matt Smith nearapogee

View GitHub Profile
@nearapogee
nearapogee / Gemfile
Last active July 3, 2023 14:36
Vlad / Rails
group :rake do
gem 'vlad', '~> 2.7.0'
gem 'vlad-git', '~> 2.2.0'
gem 'vlad-unity', '~> 0.1.0'
gem 'vlad-systemd', '~> 0.1.0'
end
@nearapogee
nearapogee / AWS Swarm cluster.md
Created June 12, 2018 19:12 — forked from ghoranyi/AWS Swarm cluster.md
Create a Docker 1.12 Swarm cluster on AWS

This gist will drive you through creating a Docker 1.12 Swarm cluster (with Swarm mode) on AWS infrastructure.

Prerequisites

You need a few things already prepared in order to get started. You need at least Docker 1.12 set up. I was using the stable version of Docker for mac for preparing this guide.

$ docker --version
Docker version 1.12.0, build 8eab29e

You also need Docker machine installed.

@nearapogee
nearapogee / README.md
Created December 5, 2015 02:07 — forked from nbremer/.block
Radar Chart Redesign

A new design for a radar chart in D3.js. You can read more about in on the blog I wrote "A different look for the D3 radar chart"

An older version of a radar chart that I adjusted two years ago when I was just starting to learn D3.js can be found here

@nearapogee
nearapogee / haproxy.cfg
Last active September 16, 2015 13:36 — forked from GABeech/haproxy.cfg
Stack Exchange HAProxy
# This is an example of the Stack Exchange Tier 1 HAProxy config
# The only things that have been changed from what we are running are:
# 1. User names have been removed
# 2. All Passwords have been remove
# 3. IPs have been changed to use the example/documentation ranges
# 4. Rate limit numbers have been changed to randome numbers, don't read into them
userlist stats-auth
group admin users $admin_user
user $admin_user insecure-password $some_password
@nearapogee
nearapogee / bdecode
Last active December 20, 2015 23:58
How I start CopyConsole
#!/usr/bin/env ruby
require 'base64'
puts Base64.decode64(ARGV[0])
package main
import (
"compress/gzip"
"io"
"net/http"
"strings"
)
type gzipResponseWriter struct {