Skip to content

Instantly share code, notes, and snippets.

View BretFisher's full-sized avatar
🗃️
All Day Containers!

Bret Fisher BretFisher

🗃️
All Day Containers!
View GitHub Profile
@BretFisher
BretFisher / certs.sh
Last active August 13, 2020 18:29
quickly make a local tls cert
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
DOMAIN_NAME=$1
openssl req \
-newkey rsa:2048 \
-x509 \
-nodes \
@BretFisher
BretFisher / gruvbox-light.js
Last active May 17, 2020 17:31 — forked from anhari/gist:23ae031e93e2f465258439cb6802acad
gruvbox *light* blink shell theme
black = '#fbf1c7';
red = '#cc241d'; // red
green = '#98971a'; // green
yellow = '#d79921'; // yellow
blue = '#458588'; // blue
magenta = '#b16286'; // pink
cyan = '#689d6a'; // cyan
white = '#7c6f64'; // light gray
lightBlack = '#928374'; // medium gray
lightRed = '#9d0006'; // red
@BretFisher
BretFisher / halloween.md
Created October 31, 2019 20:46
Scary Course Sale for Halloween
@BretFisher
BretFisher / Dockerfile-selenium-nodejs
Created November 17, 2016 20:12
Dockerfile selenium with nodejs
FROM selenium/standalone-chrome
# lets install node 6.x then cleanup
# install build-essential and leave in case npm needs it
# we have to sudo because selenium defaults to seluser
WORKDIR /tmp
ADD https://deb.nodesource.com/setup_6.x nodesource_setup.sh
RUN sudo bash nodesource_setup.sh \
&& sudo apt-get install -y nodejs build-essential \
&& sudo rm -rf /var/lib/apt/lists/*
@BretFisher
BretFisher / copy-paste.txt
Last active February 28, 2018 09:51
install docker engine for swarm3k on Ubuntu 16.04. 2 options for installing
#option 1: copy and paste this into ssh to install docker engine
# NOTE: update --label=owner=YOURNAME below if you want to easily identify yours
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D && \
mkdir -p /etc/apt/sources.list.d && \
echo deb https://apt.dockerproject.org/repo ubuntu-xenial main > /etc/apt/sources.list.d/docker.list && \
printf 'net.ipv4.neigh.default.gc_thresh1 = 30000\nnet.ipv4.neigh.default.gc_thresh2 = 32000\nnet.ipv4.neigh.default.gc_thresh3 = 32768' >> /etc/sysctl.conf && \
sysctl -p && \
service lxcfs stop && apt-get remove -y -q lxc-common lxcfs lxd lxd-client && \
apt-get update -q && apt-get install -y -q linux-image-extra-$(uname -r) linux-image-extra-virtual && \
@BretFisher
BretFisher / alias.sh
Last active February 28, 2018 09:51
Docker Cloud Swarm Connect Alias
# so docker cloud now has swarms fleet mgmt
# and you can use something like this to connect from cli to your swarm via docker remote api:
docker run --rm -ti -v /var/run/docker.sock:/var/run/docker.sock -e DOCKER_HOST dockercloud/client bretfisher/swarm1
# but maybe we can put that in a bash alias to make it easier
alias cswarm="docker run --rm -ti -v /var/run/docker.sock:/var/run/docker.sock -e DOCKER_HOST dockercloud/client"
#then
cswarm bretfisher/dude-swarm1
@BretFisher
BretFisher / # et - 2017-12-13_05-58-36.txt
Created December 13, 2017 11:02
et (mistertea/et/et) on macOS 10.13.2 - Homebrew build logs
Homebrew build logs for mistertea/et/et on macOS 10.13.2
Build date: 2017-12-13 05:58:36
@BretFisher
BretFisher / package.js
Last active June 8, 2017 15:07
Meteor package file example for pulling in single .css file via a npm module
// pulling in a single .css file from npm package todomvc-app-css
// https://github.com/tastejs/todomvc-app-css
// Using this to build a TodoMVC example with Meteor 1.0
Package.describe({
summary: 'CSS for TodoMVC apps',
version: '0.0.0'
});
// this will download the npm package to .npm inside package directory
@BretFisher
BretFisher / config-check-log.txt
Created February 27, 2017 21:00
Linux Mint 18.1 Serena Docker Config Check
warning: /proc/config.gz does not exist, searching other paths for kernel config ...
info: reading kernel config from /boot/config-4.4.0-64-generic ...
Generally Necessary:
- cgroup hierarchy: properly mounted [/sys/fs/cgroup]
- apparmor: enabled, but apparmor_parser missing
(use "apt-get install apparmor" to fix this)
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
@BretFisher
BretFisher / teams-presentations.md
Last active December 4, 2016 01:00
DE Hack Data 2016

Teams

HR Analysis, by team Spectre

  • Web visualizations of HR road accident data using Google Maps and D3 over the last 5 years
  • Data from github, not sure of source

NOAH, by team Haxton

  • Map visualizations of "overflow incidents" of storm and sewer processing systems
  • Some data from data.gov, some from HRSD, but didn't all line up to their desired data around nitrogen content due to overflow.