This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Create an Azure compatible VHD from a VirtualBox VDI | |
# More info: https://docs.microsoft.com/en-us/azure/virtual-machines/virtual-machines-linux-create-upload-generic#general-linux-installation-notes#resizing-vhds | |
# And: http://serverfault.com/a/770425 | |
name=$1 | |
# Convert the image to raw | |
qemu-img convert -f vdi -O raw "$name.vdi" image.raw | |
MB=$((1024*1024)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Create a VirtualBox VM from an Ubuntu Cloud Image | |
# Thanks to https://gist.github.com/smoser/6066204 | |
name=$1 | |
# URL to most recent cloud image of 14.04 | |
# If you want a different version just find the URL from https://cloud-images.ubuntu.com/ | |
img_url="https://cloud-images.ubuntu.com/trusty/current" | |
img_url="${img_url}/trusty-server-cloudimg-amd64-disk1.img" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# ./apib2httpsnippets | |
# Author: Max Novakovic | |
# Email: max@lateral.io | |
require 'awesome_print' | |
require 'json' | |
require 'fileutils' | |
require 'uri' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# 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[@]}" | |
do | |
# Where to store the documentation |