Skip to content

Instantly share code, notes, and snippets.

betamax /
Created Jun 19, 2015
A script that we use at Lateral to generate our documentation
# Which md files to compile
declare -a arr=("hybrid-recommender" "text-matching" "pre-populated-recommenders")
# Now loop through the above array
for i in "${arr[@]}"
# Where to store the documentation
betamax / apib2httpsnippets
Created Jun 19, 2015
A ruby script to convert an HTTP blueprint JSON file into multiple HAR files and then convert those HAR files in to code snippets using httpsnippet
View apib2httpsnippets
#!/usr/bin/env ruby
# ./apib2httpsnippets
# Author: Max Novakovic
# Email:
require 'awesome_print'
require 'json'
require 'fileutils'
require 'uri'
View create-vhd
# Create an Azure compatible VHD from a VirtualBox VDI
# More info:
# And:
# Convert the image to raw
qemu-img convert -f vdi -O raw "$name.vdi" image.raw
View create-vm
# Create a VirtualBox VM from an Ubuntu Cloud Image
# Thanks to
# URL to most recent cloud image of 14.04
# If you want a different version just find the URL from