Skip to content

Instantly share code, notes, and snippets.

View LinuxBozo's full-sized avatar

M. Adam Kendall LinuxBozo

View GitHub Profile
{
"meta": {
"theme": "kendall"
},
"basics": {
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"label": "Engineering Leadership",
"name": "M. Adam Kendall",
"email": "linuxbozo@gmail.com",
"image": "https://avatars2.githubusercontent.com/u/723420?v=2&s=460",
#!/bin/bash
set -e
BOSH_DEPLOYMENT_PATH="../../bosh-deployment"
# clean up
(cd "$BOSH_DEPLOYMENT_PATH" && git pull)
rm -rf state.json
for uuid in $(VBoxManage list vms|grep -E ^\"sc- | awk '{print $2}' | sed 's/{//' | sed 's/}//'); do
def scrubMicrosoftChars(scrubbedString="", charset='utf-8'):
""" Repair Microsoft Special Characters by mapping to standard characters """
if not scrubbedString:
return ""
charset = charset.lower()
scrubbable = ['iso-8859-1', 'windows-1252']
if charset not in scrubbable:
# since it's not a "friendly" charset, don't scrub, just return it
return scrubbedString

Keybase proof

I hereby claim:

  • I am linuxbozo on github.
  • I am linuxbozo (https://keybase.io/linuxbozo) on keybase.
  • I have a public key ASCpZ2hulsPfAEhi0PL5azhmyVQZRiRzHA98A1pr5z7hEgo

To claim this, I am signing this object:

#!/bin/bash
# Author: Robbie Van Gorkom
# Created: 2012-05-17
# Modified: 2016-02-16 M. Adam Kendall
#
# This script will convert a directory in a git repository to a repository
# of it very own.
#
# set the variables.
@LinuxBozo
LinuxBozo / examples.json
Last active August 29, 2015 14:15
Examples for compareNum
{
"id": "Q031",
"description": "If property type = 3, then the total number of multifamily applications should be < 200.",
"explanation": "Number of reported multifamily applications is ≥ 200; Verify.",
"rule": {
"property": "hmdaFile",
"condition": "call",
"function": "compareNumEntriesSingle",
"args": [
"hmdaFile.loanApplicationRegisters",
HMDAEngine.isChildFI = function(respondentID) {
var url = HMDAEngine.getAPIURL() + '/isChildFI/' + HMDAEngine.getRuleYear() + '/' + respondentID;
var response = request('GET', url);
var body = JSON.parse(response.getBody('utf8'));
return body.result;
};
var engine = require('../engine'),
rewiredEngine = rewire('../engine'),
http = require('http'),
shmock = require('shmock'),
port = '10000',
mockAPIURL = 'http://localhost:'+port,
mockYEAR = '2013';
describe('Engine', function() {
var mockAPI;
var shmock = require('shmock');
var mockAPI = shmock(10000);
mockAPI.get('/foo').reply(200, 'bar');
mockAPI.get('/isChildFI/2013/1').reply(200, JSON.stringify({ result: true }));