Skip to content

Instantly share code, notes, and snippets.

View astromoose's full-sized avatar

Jon Anning astromoose

View GitHub Profile
@astromoose
astromoose / proxy_start.sh
Created June 21, 2017 09:17 — forked from Kyle-Falconer/proxy_start.sh
Proxy Autostart/auto-configure shell script for Mac OS 10.11.5
#!/bin/sh
# Proxy Autostart/auto-configure for Mac OS 10.11.5
# written by Kyle Falconer <Kyle.Falconer@vta.org> June 2016
#
# cntlm was setup using the instructions found at:
# http://blog.hoachuck.biz/blog/2013/03/21/howto-set-cntlm-on-mac-os-x/
#
# cntlm autostarts using launchctl
# see the plist at
@astromoose
astromoose / gist:1351476
Created November 9, 2011 13:50 — forked from bpoweski/gist:974870
Route53 gem chef recipe
define :cname_record, :hostname => nil do
name = params[:name]
hostname = params[:hostname]
subdomain = name.split(".").tap(&:shift).join(".")
remote_file "/home/#{node[:owner_name]}/.route53" do
source "route53.yml"
cookbook 'supply_chain_db'
owner node[:owner_name]
group node[:owner_name]
@astromoose
astromoose / update_dns.rake
Created November 9, 2011 13:49 — forked from mpasternacki/update_dns.rake
Rake task to update Amazon Route53 DNS from by Chef node search
# -*- ruby -*-
# Needs following parameters configured in rake.rb:
# DNS_DOMAIN: domain for which to set entries, including trailing dot
# (e.g. "example.com.")
# DNS_ATTRIBUTE: attribute containing hostname to CNAME to, defaults
# to 'fqdn'; for EC2, use "ec2.public_hostname"
# DNS_ENTRIES: hash mapping hostname to node search query,
# e.g. {'buildbot' => 'recipes:buildbot', 'monitoring' =>
# 'roles:monitoring'}