Skip to content

Instantly share code, notes, and snippets.

View seanhagen's full-sized avatar
:shipit:
coding

Sean Hagen seanhagen

:shipit:
coding
  • Flight Center Travel Group
  • Vancouver, British Columbia
  • 02:59 (UTC -07:00)
View GitHub Profile
@seanhagen
seanhagen / output.log
Created January 30, 2014 01:38
Output log from Packer
2014/01/29 17:29:41 Packer Version: 0.5.1 eeefde8fc71444fdfc77711dc0e2789fa9b3b7d2
2014/01/29 17:29:41 Packer Target OS/Arch: linux amd64
2014/01/29 17:29:41 Built with Go Version: go1.2
2014/01/29 17:29:41 Detected home directory from env var: /home/sean
2014/01/29 17:29:41 Attempting to open config file: /home/sean/.packerconfig
2014/01/29 17:29:41 File doesn't exist, but doesn't need to. Ignoring.
2014/01/29 17:29:41 Packer config: &{PluginMinPort:0 PluginMaxPort:0 Builders:map[amazon-chroot:packer-builder-amazon-chroot docker:packer-builder-docker googlecompute:packer-builder-googlecompute openstack:packer-builder-openstack vmware-iso:packer-builder-vmware-iso amazon-ebs:packer-builder-amazon-ebs amazon-instance:packer-builder-amazon-instance digitalocean:packer-builder-digitalocean qemu:packer-builder-qemu virtualbox-iso:packer-builder-virtualbox-iso virtualbox-ovf:packer-builder-virtualbox-ovf vmware-vmx:packer-builder-vmware-vmx] Commands:map[build:packer-command-build fix:packer-command-fix inspect:p
{
"builders": [
{
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz noapic ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname={{ .Name }} ",
"fb=false debconf/frontend=noninteractive ",
@seanhagen
seanhagen / Email from same thread after List-ID change
Created October 10, 2014 17:11
Discourse email header changes
Reply-To: VHS Talk <replies+eb66c816008c9abaea03d86947070db3@talk.hackspace.ca>
Message-ID: <543726a88ecd9_26d33fb0b2a5fcc41093e9@talk.mail>
In-Reply-To: <topic/342@talk.hackspace.ca>
References: <topic/342@talk.hackspace.ca>
List-Unsubscribe: <https://talk.hackspace.ca/my/preferences>
List-ID: <projects.talk.hackspace.ca>
List-Archive: https://talk.hackspace.ca/t/pro-mini-tip-customized-header-pins/342
@seanhagen
seanhagen / 69-yubikey.rules
Created December 17, 2014 05:41
Yubikey NEO Setup
ACTION!="add|change", GOTO="yubico_end"
# Udev rules for letting the console user access the Yubikey USB
# device node, needed for challenge/response to work correctly.
# Yubico Yubikey II
ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0010|0110|0111|0116", \
ENV{ID_SECURITY_TOKEN}="1"
LABEL="yubico_end"
### Keybase proof
I hereby claim:
* I am seanhagen on github.
* I am seanhagen (https://keybase.io/seanhagen) on keybase.
* I have a public key whose fingerprint is A1C5 3473 CFD5 F587 B83C 0B39 78FD 721B AAD2 F03A
To claim this, I am signing this object:
[827006.380]
X.Org X Server 1.17.1
Release Date: 2015-02-10
[827006.380] X Protocol Version 11, Revision 0
[827006.380] Build Operating System: Linux 3.2.0-61-generic x86_64 Ubuntu
[827006.381] Current Operating System: Linux TheBlackTower 3.16.0-44-generic #59-Ubuntu SMP Tue Jul 7 02:07:39 UTC 2015 x86_64
[827006.381] Kernel command line: BOOT_IMAGE=/vmlinuz-3.16.0-44-generic root=UUID=4d660831-94d3-4c99-828c-1e360d6d6358 ro quiet splash vt.handoff=7
[827006.381] Build Date: 19 March 2015 09:26:59AM
[827006.381] xorg-server 2:1.17.1-0ubuntu3 (For technical support please see http://www.ubuntu.com/support)
[827006.381] Current version of pixman: 0.32.6
@seanhagen
seanhagen / video.js
Created October 23, 2013 18:21
Example unit tests for Backbone.js model
describe( "Video model", function(){
var MOCK_GET_DATA = {
channelName: "tgndeveloperedu",
commentCount: 0,
defaultOrder: 0,
dislikeCount: 0,
facebookCount: "0",
googleCount: "0",
likeCount: 0,
@seanhagen
seanhagen / build.xml
Created November 12, 2013 20:15
Small Phing target to update a file with the current build version. Requires 'version' to be set in project.properties
<target name="-set.buildtime">
<php expression="date('Ymdhms');" returnProperty="build_time" />
<property name="build.version" value="${version}-${build_time}" />
<echo>Build number: ${build.version}</echo>
<delete file="${phing.dir}/build.txt" />
<echo file="${phing.dir}/build.txt">${build.version}</echo>
</target>
@seanhagen
seanhagen / build.xml
Last active December 28, 2015 03:49
Template for Phing build files
<?xml version="1.0" encoding="UTF-8" ?>
<project name="==PROJECT NAME HERE==" basedir="." default="main">
<!--
This is a file that should be in the same directory as this file.
It defines some basic variables for use in this build file.
Some variables are required for each project, regardless of type:
version: defines the current version of your project.
branch: defines the default branch to build
url: should always be defined, but empty
@seanhagen
seanhagen / composer.json
Last active December 28, 2015 03:49
Required dev libraries for code testing and analysis
"require-dev": {
"phpmd/phpmd": "dev-master",
"pdepend/pdepend": "dev-master",
"phploc/phploc": "2.0.*@dev",
"squizlabs/php_codesniffer": "dev-master",
"sebastian/phpcpd": "2.0.*@dev",
"sebastian/phpdcd": "1.0.*@dev",
"shrink/phpcpd": "dev-master",
"shrink/finder-facade": "dev-master",
"codeception/codeception": "dev-master",