Skip to content

Instantly share code, notes, and snippets.

View davidmnoriega's full-sized avatar

David M Noriega davidmnoriega

View GitHub Profile

Keybase proof

I hereby claim:

  • I am davidmnoriega on github.
  • I am davidmnoriega (https://keybase.io/davidmnoriega) on keybase.
  • I have a public key whose fingerprint is 2144 2F3D 0CA8 0CAE 0F72 4D60 FD0D 9BEA 583D D881

To claim this, I am signing this object:

@davidmnoriega
davidmnoriega / Vagrantfile
Last active April 5, 2018 17:15
My common Vagrantfile
Vagrant.configure("2") do |config|
if Vagrant.has_plugin?("vagrant-timezone")
# Sets guest timezone to be the same as the host
config.timezone.value = :host
end
# I run a local squid proxy for yum/apt
# See https://github.com/davidmnoriega/docker-squid
# The IPs specified here might not be universal
if Vagrant.has_plugin?("vagrant-proxyconf")
@davidmnoriega
davidmnoriega / gist:c408a7ed5ecaf4d6f4ed89476c7a37bf
Created July 14, 2016 16:55
vagrant debug with private_network auto_config false and virtualbox
$ VAGRANT_LOG=info vagrant up
INFO global: Vagrant version: 1.8.1
INFO global: Ruby version: 2.2.3
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_LOG="info"
INFO global: VAGRANT_DEFAULT_PROVIDER="virtualbox"
INFO global: VAGRANT_OLD_ENV_VIRTUALENVWRAPPER_WORKON_CD="1"
INFO global: VAGRANT_OLD_ENV_VAGRANT_LOG="info"
INFO global: VAGRANT_OLD_ENV_USER="davidmnoriega"
INFO global: VAGRANT_OLD_ENV_GOPATH="/Users/davidmnoriega/.go"
@davidmnoriega
davidmnoriega / backend-containers.sh
Last active March 2, 2016 08:25
Create backend supporting infrastructure for local development
#!/bin/bash
# Inspiration
# Patrick Chanezon
# https://github.com/chanezon/docker-tips/blob/master/orchestration-networking/swarm-local.sh
docker-machine create \
-d virtualbox \
consul
docker $(docker-machine config consul) run -d --restart=always \