Skip to content

Instantly share code, notes, and snippets.

View evanscottgray's full-sized avatar
🤠
herding cats

Evan Gray evanscottgray

🤠
herding cats
View GitHub Profile
@evanscottgray
evanscottgray / wow_bounce.md
Last active November 8, 2017 13:47
Getting UDP out from behind a restrictive firewall.

Mosh + OpenVPN = Love

Okay. Let's pretend here for a sec that you work in an office where UDP is filtered outbound, but we really want to use UDP for mosh.

Here's the plan at a high level.

  1. Spin up a cloud server
  2. Install Docker
  3. Start OpenVPN Container
  4. Grab .ovpn config
  5. Modify .ovpn config to a include static route to your UDP-enabled destination
@evanscottgray
evanscottgray / weechat.md
Last active August 29, 2015 14:09
weechat wow

Getting your WeeChat on.

Boot a Fedora 22 Cloud Server.

We'll need to install these things:

mosh
weechat
tmux
vim
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@evanscottgray
evanscottgray / allthecontainers.md
Created October 29, 2014 22:10
delete docker containers

delete all the docker containers! docker ps -a | sed '1d' | awk {'print $1'} | xargs docker rm

@evanscottgray
evanscottgray / docker_base_image_lab.md
Last active July 28, 2017 09:47
Creating a Base Image for the Lab

Building a new Base Image

Practical documentation on how to create a new base image.

Pick a Base Image to work on.

First we'll want to identify what image we are going to use as our base image to modify is.

In this example our previous base image is old-oca-bastion.

Define a Goal

We have been tasked with doing the following:

@evanscottgray
evanscottgray / docker_image_container_basics.md
Last active June 21, 2018 07:09
creating base images with docker.

Docker Container/Image Basics

This is a basic step by step intro to working with Docker containers and Images. You should be able to follow along with your installation of docker, but be sure to change IDs/naming schemes according to your use case.

The goal of this exercise is to create a base image from the ubuntu base image that has both the jre and htop installed.

Start up an ubuntu container to modify, install htop, then exit.

docker run -t -i ubuntu /bin/bash

Get the ID of the container you just modified.

@evanscottgray
evanscottgray / appl.json
Created October 22, 2014 03:39
apple bid price over time...
[
"97.85",
"98.27",
"98.48",
"98.58",
"98.52",
"98.52",
"98.47",
"98.50",
"98.50",
@evanscottgray
evanscottgray / restsharp_tls12.md
Last active January 10, 2017 07:36
forcing tls 1.2
@evanscottgray
evanscottgray / report.txt
Last active August 29, 2015 14:07
Sastemic Cloud Costs
Usage Stats for Item #0.
Hours Used: 267.33
Hourly Price: 0.022
Total Cost for Month: 5.88
Usage Stats for Item #1.
Hours Used: 267.35
Hourly Price: 0.022
Total Cost for Month: 5.88
@evanscottgray
evanscottgray / ezpz.js
Created October 7, 2014 22:12
ezpz.js
var linearScale = d3.scale.linear()
.domain([d3.min(dataset, function (f) {return parseInt(f.total);}), d3.max(dataset, function (f) {return parseInt(f.total);})])
.range([0, 100]);
var svgContainer = d3.select("#select").append('svg')
.attr("width", 1000)
.attr("height", 1000)
.style("border", "black solid 1px");
var svgCircles = svgContainer.selectAll("circle")