Skip to content

Instantly share code, notes, and snippets.

View saintaardvark's full-sized avatar
💭
68% and trending up 📈

Hugh Brown (Saint Aardvark the Carpeted) saintaardvark

💭
68% and trending up 📈
View GitHub Profile
@saintaardvark
saintaardvark / gist:375aa054c15f02c42f45
Created January 16, 2015 15:09
Emacs tip-of-the-day
(defun totd ()
(interactive)
(with-output-to-temp-buffer "*Tip of the day*"
(let* ((commands (loop for s being the symbols
when (commandp s) collect s))
(command (nth (random (length commands)) commands)))
(princ
(concat "Your tip for the day is:\n"
"========================\n\n"
(describe-function command)
2015/05/07 04:23:30 [INFO] Packer version: 0.7.5 9cd66feeacbd9cb318b72eb5ed59428c5b8c37ac+CHANGES
2015/05/07 04:23:30 Packer Target OS/Arch: linux amd64
2015/05/07 04:23:30 Built with Go Version: go1.3.3
2015/05/07 04:23:30 [DEBUG] Discoverd plugin: amazon-chroot = /home/hugh/packer/packer-builder-amazon-chroot
2015/05/07 04:23:30 [DEBUG] Discoverd plugin: amazon-ebs = /home/hugh/packer/packer-builder-amazon-ebs
2015/05/07 04:23:30 [DEBUG] Discoverd plugin: amazon-instance = /home/hugh/packer/packer-builder-amazon-instance
2015/05/07 04:23:30 [DEBUG] Discoverd plugin: digitalocean = /home/hugh/packer/packer-builder-digitalocean
2015/05/07 04:23:30 [DEBUG] Discoverd plugin: docker = /home/hugh/packer/packer-builder-docker
2015/05/07 04:23:30 [DEBUG] Discoverd plugin: googlecompute = /home/hugh/packer/packer-builder-googlecompute
2015/05/07 04:23:30 [DEBUG] Discoverd plugin: null = /home/hugh/packer/packer-builder-null
deb [trusted=yes] https://packagecloud.io/chef/stable/ubuntu/ lucid main
deb-src [trusted=yes] https://packagecloud.io/chef/stable/ubuntu/ lucid main
FROM ubuntu:trusty
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apt-transport-https curl
# chef-stable.list can be found here: https://gist.github.com/saintaardvark/ce7700054e573fe9bd14
COPY assets/chef-stable.list /etc/apt/sources.list.d/chef-stable.list
RUN /bin/bash -c '/usr/bin/curl https://packagecloud.io/gpg.key | /usr/bin/apt-key add -'
# This command comes from the apt cookbook for Chef: https://github.com/chef-cookbooks/apt/blob/master/providers/repository.rb#L196-L202
RUN /bin/bash -c "apt-get update -o Dir::Etc::sourcelist='sources.list.d/chef-stable.list' -o Dir::Etc::sourceparts='-' -o APT::Get::L\
ist-Cleanup='0'"
RUN apt-get update