Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing Dependency Mapping

Cap10Bill bnortman

🎯
Focusing Dependency Mapping
Block or report user

Report or block bnortman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bnortman
bnortman / README-Template.md
Created Jun 11, 2018 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.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
Weather API Call
View main.go
package main
import (
"encoding/json"
"io/ioutil"
"log"
"net/http"
"strconv"
"sync"
"time"
@bnortman
bnortman / mp4boxStitch.bat
Last active Apr 9, 2017
The Search will be added to a commandline that can be copied and run to append a bunch of video files together
View mp4boxStitch.bat
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 Apr 7, 2017 — 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.
View 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 Apr 7, 2017 — forked from kesor/Gemfile
Vagrantfile to create a chef-server (11.x) and a client box that uses it.
View Gemfile
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 Apr 7, 2017 — forked from vratiu/.bash_aliases
Git shell coloring
View .bash_aliases
# 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 Apr 6, 2017
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…
View jq compare files
#!/bin/bash
JQ=/usr/local/bin/jq
BN=$(basename $0)
function help {
cat <<EOF
Syntax: $0 file1 file2
@bnortman
bnortman / get-toolbox.sh
Created Apr 2, 2017 — forked from jacobtomlinson/get-toolbox.sh
Docker toolbox for linux
View get-toolbox.sh
#!/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
View faces.txt
¢‿¢
©¿© o
ª{•̃̾_•̃̾}ª
¬_¬
¯\(º_o)/¯
¯\(º o)/¯
¯\_(⊙︿⊙)_/¯
¯\_(ツ)_/¯
°ω°
°Д°
You can’t perform that action at this time.