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
  • 06:48 (UTC -07:00)
View GitHub Profile
@seanhagen
seanhagen / package.json
Last active December 28, 2015 04:09
Example package.json
{
"name": "project-name-here",
"version": "0.0.1",
"author": "Your Name <your-email@example.com>",
"description": "Simple project description",
"dependencies": {
"grunt": "~0.4.1",
"grunt-cli": "~0.1.9",
"grunt-shell": "~0.4.0",
"grunt-env": "*",
@seanhagen
seanhagen / Gruntfile.js
Last active December 28, 2015 04:09
Example Gruntfile.js
module.exports = function(grunt){
require('load-grunt-tasks')(grunt);
var join = require("path").join;
grunt.initConfig({
pkg: grunt.file.readJSON( 'package.json' ),
env: {
@seanhagen
seanhagen / composer.json
Last active December 28, 2015 03:49
Required parts of a composer.json file to auto-update npm modules
"scripts": {
"post-install-cmd": [
"npm install"
],
"post-update-cmd": [
"npm install"
]
},
@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",
@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 / 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 / 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,
[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
### 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:
@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"