Skip to content

Instantly share code, notes, and snippets.

View bnortman's full-sized avatar
🎯
Focusing Dependency Mapping

Cap10Bill bnortman

🎯
Focusing Dependency Mapping
View GitHub Profile
@bnortman
bnortman / README-Template.md
Created June 11, 2018 20:41 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@bnortman
bnortman / main.go
Last active May 1, 2018 16:58
Weather API Call
package main
import (
"encoding/json"
"io/ioutil"
"log"
"net/http"
"strconv"
"sync"
"time"
@bnortman
bnortman / mp4boxStitch.bat
Last active April 9, 2017 07:30
The Search will be added to a commandline that can be copied and run to append a bunch of video files together
echo off
set tmpvar=mp4box
setlocal EnableDelayedExpansion
set files=%1
echo %files%
set files=E:\_StuffToBackup\Hockey\!files!.mp4
echo %files%
for %%f in (%files%) do (
set tmpvar=!tmpvar! -cat %%~nf%%~xf
)
@bnortman
bnortman / Vagrantfile
Created April 7, 2017 17:57 — forked from thomasmassmann/Vagrantfile
Create a vagrant box with chef server provisioning and automatic client and node cleanup on the server when the vagrant box gets destroyed. All necessary api keys and config options are taken from environment variables. The knife.rb must live inside a .chef directory besides the Vagrantfile.
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'chef'
Chef::Config.from_file(File.join(File.dirname(__FILE__), '.chef', 'knife.rb'))
vms = {
"testbox" => {
:box => "precise64",
:ipaddress => "192.168.33.10",
@bnortman
bnortman / Gemfile
Created April 7, 2017 17:57 — forked from kesor/Gemfile
Vagrantfile to create a chef-server (11.x) and a client box that uses it.
source :rubygems
gem 'json', '= 1.5.4' # knife/chef 11.0 and 11.20 is broken with json 1.5.5/1.7.7
gem 'vagrant'
gem 'vagrant-hostmaster'
@bnortman
bnortman / .bash_aliases
Created April 7, 2017 16:15 — forked from vratiu/.bash_aliases
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@bnortman
bnortman / jq compare files
Created April 6, 2017 23:12
The two files are assumed each to contain one JSON entity. This script reports whether the two entities are equivalent in the sense that their normalized values are equal, where normalization of all component arrays is achieved by recursively sorting them, innermost first. (Found at http://stackoverflow.com/questions/31930041/using-jq-or-alterna…
#!/bin/bash
JQ=/usr/local/bin/jq
BN=$(basename $0)
function help {
cat <<EOF
Syntax: $0 file1 file2
@bnortman
bnortman / get-toolbox.sh
Created April 2, 2017 05:08 — forked from jacobtomlinson/get-toolbox.sh
Docker toolbox for linux
#!/bin/bash
# A quick script to install Docker Engine and Compose
# Run with sudo
# Install Docker Engine
curl -sSL https://get.docker.com/ | sh
# Start Docker
# TODO update to handle multiple distros
service docker start
¢‿¢
©¿© o
ª{•̃̾_•̃̾}ª
¬_¬
¯\(º_o)/¯
¯\(º o)/¯
¯\_(⊙︿⊙)_/¯
¯\_(ツ)_/¯
°ω°
°Д°