Skip to content

Instantly share code, notes, and snippets.

@whilp
whilp / gist:5285644
Created April 1, 2013 15:40
Thoughts on Monitorama.eu from Boston 2013
- prep AV between speakers
- put mic on speaker so they can move about
- alternative speakers: science (CERN?), news (guardian?), disaster management
- publish slides before talks/workshops
- provide local mirror for things like Vagrant baseboxes
@whilp
whilp / README.md
Last active December 16, 2015 11:49

apt-get update if necessary

Some Vagrant baseboxes (like Opscode's bento boxes) ship with stale apt package indexes. When you run vagrant up and your main provisioner tries to install a package, you get an error. Here's a quickfix that takes advantage of Vagrant's support for multiple provisioners:

  config.vm.provision :shell do |shell|
    shell.inline = 'test -f $1 || (sudo apt-get update -y && touch $1)'
    shell.args = '/var/run/apt-get-update'
  end
Element = namedtuple("Element", "name children attrs")
def E(name, *children, **attrs):
return Element(name, list(children), attrs)
def serialize(element):
# Short circuit if the element is just text.
if not hasattr(element, "children"):
return element
tag = element.name
@whilp
whilp / a_b
Last active December 19, 2015 06:19
a
class Environment(Template):
def __init__(self, name, region):
self.name = name
self.region = region
self.vpc = boto.vpc.connect_to_region(region)
self.ec2 = boto.ec2.connect_to_region(region)
self.outputs = {}
resources = self.resources(self.environment(), self.images())
* Attendees email
Ahoy!
The first ever DevopsDays in Portland is right around the corner. You'll find important details below, including organizer contact information in case you need to make last-minute arrangements. Please let us know if you have any questions. Thanks again -- we look forward to seeing you in Portland on November 4 and 5!
** Date and location
The conference is Monday November 4 and Tuesday November 5 at the Gerding Theater at the Armory:
[2013-12-05T15:47:12+00:00] INFO: Processing execute[index users create] action run (github::elasticsearch line 8)
[2013-12-05T15:47:36+00:00] ERROR: execute[index users create] (github::elasticsearch line 8) had an error: Expected process to exit with [0], but received '7'
---- Begin output of . /data/github/shared/env.sh
rbenv local 1.9.3-p231-tcs-github
bin/rake enterprise:index:users:create
/usr/bin/curl --max-time 10 -sS -f -XHEAD 'http://localhost:9200/users'
----
STDOUT:
STDERR: /bin/readlink: missing operand
Try `/bin/readlink --help' for more information.
(require 'auth-source)
(require 'url)
(defun* my-gh-profile (url user)
(let* (
(urlobj (url-generic-parse-url url))
(host (url-host urlobj))
(auth-info
(car
(auth-source-search
@whilp
whilp / pdx.txt
Last active August 29, 2015 13:55
* Hackathon
- https://github.com/obfuscurity/monitorama/issues/17
** Brief
- we provide: warehousey space, couches, snacks, coffee, games, wifi, hackers, power
- you provide: stuff to work on, experts
- space for 10-15 projects
- discount ticket for experts?
- hack all day, beers at end?
- sponsorships: food, coffee, beer, AWS, pingpong
* 2014-02-14
** Attending
- jdixon
- whilp
- dawn
** CFP
- toufic boubez
- jen andre