Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env zsh
layouts=(dot neato fdp sfdp twopi circo)
for layout in $layouts; do
filename="graph.$layout.png"
echo $filename
madge --exclude '^node_modules|templates|^test' --layout $layout --image $filename "$1"
#convert $filename -fuzz 30% -fill \#FFFFFF -opaque \#000000 filtered.$filename
done
@corburn
corburn / vcf_to_matrix.sh
Last active August 29, 2015 14:12
Schedules a vcf_to_matrix job and diff the output against a reference folder
#!/bin/bash
#
# Schedules a vcf_to_matrix job and diff the output against a reference folder
#
# The REPO_PATH and VCF_TO_MATRIX variables must be set by the user
#
# REFERENCE_PATH is an output folder from the nasp program. The vcf_to_matrix
# program will read its files and write its output to a folder
# Set Script Name variable
@corburn
corburn / boot2docker_patch.sh
Created April 3, 2015 19:01
Fix docker can't connect to boot2docker because of tcp timeout when using Cisco Anyconnect
# http://stackoverflow.com/a/27804765
# I am using OSX Yosemite and Cisco Anyconnect (which are apparently a bad combo for using boot2docker)
# and the following finally worked for me (thanks to the linked GitHub issue comment):
# These steps will add a port forwarding rule and modify your environment to have docker point to 127.0.0.1
# (instead of 192.168.59.103 or other NATed IP).
# First - boot2docker needs to be installed but not running.
# If it is currently running - stop it now:
boot2docker down
Tools
=====
- [Intel XDK](https://software.intel.com/en-us/html5/tools)
HTML5 Cross platform dev tool.
- [Vagrant](https://www.vagrantup.com/)
Lightweight portable deve environments.
- [Docker](https://www.docker.com/)
An open platform for distributed applications for developers and sysadmins.
@corburn
corburn / goclean.sh
Last active August 29, 2015 14:19 — forked from h12w/goclean.sh
#!/bin/bash
# The script does automatic checking on a Go package and its sub-packages, including:
# 1. gofmt (http://golang.org/cmd/gofmt/)
# 2. goimports (https://github.com/bradfitz/goimports)
# 3. golint (https://github.com/golang/lint)
# 4. go vet (http://golang.org/cmd/vet)
# 5. race detector (http://blog.golang.org/race-detector)
# 6. test coverage (http://blog.golang.org/cover)
set -e
# Remove file from history
git filter-branch \
--index-filter 'git rm --cached --ignore-unmatch filename.orig' merge-point..HEAD
import {bootstrap, Component, Decorator, View, If, For, EventEmitter} from 'angular2/angular2';
import {FormBuilder, Validators, FormDirectives, ControlGroup} from 'angular2/forms';
@Component({
selector: 'app',
injectables: [FormBuilder]
})
@View({
template: `
/**
* @ngdoc directive
* @name ioBridgeDial
* @restrict E
*
* @description
*
* @element io-bridge-dial
* @param {expression} label The name of the device being monitored will be displayed on the dial.
* @param {expression} value Current dial value.
#!/bin/bash
#
# A boilerplate script template
#
# https://google-styleguide.googlecode.com/svn/trunk/shell.xml
# http://shelldorado.com/goodcoding/
#######################################
# Cleanup files from the backup dir
# Globals:
@corburn
corburn / RFC
Last active August 29, 2015 14:28
Address Allocation for Private Internets
https://www.ietf.org/rfc/rfc1918.txt
Choosing a Name for Your Computer
http://tools.ietf.org/html/rfc1178
http://namingschemes.com/
Lightweight Directory Access Protocol (LDAP): Technical Specification Road Map
https://tools.ietf.org/html/rfc4510