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
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.5
Comment: Hostname: pgp.mit.edu
mQINBFU4Ax4BEADmfzwSV9aXtxkiL6GCmvg3KYr4VmQc1LSqU7RekmbTdxcnPXrsUq7ZrFUD
h9zC+cKcjiQFcTyeoEEX/+9Y09tqOLKcqX4EtXozRGlBeAabCwFa9pwAmEb8g62cm7fSVLO+
DFFD6IX9H4rGPLhKNNXXuE3zJWKE4n1aZaXYRHRHUL55+Bgm3hT1Kcos/KnFje2YqDUy4xTk
kL4SJQwNoFILdK/ebVK1eaRspf+JMUh5qa5n4ExtpZfiH8vb67X5YaE9skz8AruG6COICH0D
fBSOqVnN3RjIWpWvGBAOhznCOrwPedGY+PAQzhOjfnXvtRqIEgZreBretg4ULC4R5VUE+1qA
J5IftuymKhlLiCBLgidk0Bh3JTbvH7FSHcLAd6Ljkyq1L3Sg4jQ9ciJpVzyS27eR7c2vft6X
@BretFisher
BretFisher / execstart.conf
Created January 27, 2016 22:38
Docker 1.9 UCP 0.6 RHEL Daemon startup
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.com
After=network.target docker.socket
Requires=docker.socket
[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon -H fd:// -H unix://var/run/docker.sock --exec-opt native.cgroupdriver=cgroupfs --storage-driver=devicemapper --ip x.x.x.x
MountFlags=private
@BretFisher
BretFisher / log-delete.ps1
Created February 11, 2016 19:16
Exchange 2013 Log Cleanup PowerShell Script
Set-Executionpolicy RemoteSigned
$days=10 #You can change the number of days here
$IISLogPath="C:\inetpub\logs\"
$ExchangeLoggingPath="C:\Program Files\Microsoft\Exchange Server\V15\Logging\"
Function CleanLogfiles($TargetFolder)
{
if (Test-Path $TargetFolder) {
$Now = Get-Date
@BretFisher
BretFisher / syslog.txt
Created October 28, 2016 14:39
errors in syslog
Oct 28 14:37:18 ip-172-31-63-55 dockerd[26165]: time="2016-10-28T14:37:18.308189347Z" level=info msg="2016/10/28 14:37:18 [INFO] memberlist: Marking ip-172-31-59-92-7b438b1188a3 as failed, suspect timeout reached\n"
Oct 28 14:37:18 ip-172-31-63-55 dockerd[26165]: time="2016-10-28T14:37:18.753674582Z" level=info msg="2016/10/28 14:37:18 [INFO] memberlist: Marking ip-172-31-21-186-3dcc744b686c as failed, suspect timeout reached\n"
Oct 28 14:37:18 ip-172-31-63-55 dockerd[26165]: time="2016-10-28T14:37:18.842625022Z" level=info msg="2016/10/28 14:37:18 [INFO] memberlist: Suspect ip-172-31-23-36-12bf3bd381ff has failed, no acks received\n"
@BretFisher
BretFisher / docker-ps.txt
Created October 28, 2016 16:48
slowly adding containers
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0ed57993dc33 alpine:latest "top" About a minute ago Up About a minute c1m.26887.6hhpgf6e0ceh44u9m77o6ua5o
34bbec457d3f alpine:latest "top" About a minute ago Up About a minute c1m.24871.6sz0rw4sinx057q460rbryi9t
509cc29a7aac alpine:latest "top" 2 minutes ago Up 2 minutes c1m.23778.6fodlsp1gfb11z4zc3ht7nvfl
e2e852a5c42f alpine:latest "top" 3 minutes ago Up 3 minutes c1m.20352.epp244g73mt4s76wph31ixizl
0ef9694c621a alpine:latest "top" 5 minutes ago Up 5 minutes
@BretFisher
BretFisher / hercules-proposal.md
Last active November 30, 2016 21:43
Hercules Original Proposal

Hack to Help 2015 Winners Original Proposal

Team

TOL DWS Explore Hampton Roads

Product

HRQLS "An easy-to-use tool for visualizing quality of life by regions in Hampton Roads.

Overall Vision & Functionality

EHR weights and merges QoL factors such as crime, cost, health, schools, transportation, sanitation, recreation, and others to produce a map representing QoL in regions within Hampton Roads. The user adjusts sliders for each factor to find the optimal location in which to live based on their input.

@BretFisher
BretFisher / cfa-talk.md
Last active December 3, 2016 20:01
Code For Hampton Roads Intro
@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.
@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 / 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