Skip to content

Instantly share code, notes, and snippets.

View chasegenie's full-sized avatar

Chase Vecchio chasegenie

View GitHub Profile
@chasegenie
chasegenie / digital-ocean-image-collection
Created October 17, 2014 07:56
digital-ocean-image-collection
[{
"images" => {
"id" => 6859908, "is_global" => false, "user_id" => 73694, "is_public" => true, "name" => "CoreOS (alpha) 471.1.0", "filename" => "coreos-alpha-471.1.0-201410152115.raw.sparse.gz", "region_id" => 8, "operating_system_id" => nil, "created_at" => "2014-10-16T01:36:45Z", "updated_at" => "2014-10-16T14:46:19Z", "droplet_id" => nil, "description" => nil, "distribution_id" => 15, "image_type_id" => nil, "is_deleted" => false, "filesize" => 205931481, "md5sum" => "b05d3d74b64d141c0ee1602a5a22bf49", "kernel" => nil, "initrd" => nil, "cmdline" => nil, "maxsize" => nil, "is_x32" => nil, "is_gui" => nil, "actualsize" => nil, "is_snapshot" => true, "is_backup" => nil, "is_application" => nil, "is_base" => true, "is_iso" => nil, "is_archive" => nil, "is_temporary" => nil, "delete_at" => nil, "error_count" => nil, "is_disk_resizable" => nil, "image_kernel_id" => nil, "is_do" => true, "is_locked" => nil, "minsize" => nil, "inodes_used" => nil, "glacier_archive_id" => "fi0OPS_4u_V5JzhdWXyT8bgaMlQ
@chasegenie
chasegenie / portforwarding.md
Last active August 29, 2015 14:07 — forked from kujohn/portforwarding.md
Fake domains for Vagrant VMs

Port Forwarding in Mavericks


Since Mavericks stopped using the deprecated ipfw (as of Mountain Lion), we'll be using pf to allow port forwarding.

####1. anchor file Create an anchor file under /etc/pf.anchors/<anchor file> (vagrant.anchor for example) with your redirection rule like: