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
  • 12:39 (UTC -07:00)
View GitHub Profile
@seanhagen
seanhagen / oauth.go
Last active August 16, 2016 00:54
Storing this here for use later ( don't want to clutter up a repo with an entirely commented out file )
package app
// Routes to handle validating user login against the auth app.
// Currently doesn't do anything because the Auth app isn't up yet. Need to get
// that deployed so this can be fleshed out.
import (
"fmt"
"github.com/KloudKtrl/internal/database"
"github.com/dgrijalva/jwt-go"
;; mu4e stuff
(require 'mu4e)
;; tell message-mode how to send mail
(setq message-send-mail-function 'smtpmail-send-it)
;; if our mail server lives at smtp.example.org; if you have a local
;; mail-server, simply use 'localhost' here.
(setq smtpmail-smtp-server "localhost")
(setq mu4e-view-prefer-html t)
#!/usr/bin/python
#import gtk
import gnomekeyring as gkey
import getpass
class Keyring(object):
def __init__(self, name, server, protocol):
self._name = name
self._server = server
#!/usr/bin/python
import sys
#import gtk
import gnomekeyring as gkey
class Keyring(object):
def __init__(self, name, server, protocol):
self._name = name
self._server = server
@seanhagen
seanhagen / emacs_stuff.md
Created November 27, 2013 19:50
Emacs Reference
@seanhagen
seanhagen / Puppetfile.txt
Created November 26, 2013 20:13
Example Puppetfile
forge "http://forge.puppetlabs.com"
mod "nodes/php"
mod "puppetlabs/mysql"
mod "willdurand/composer"
@seanhagen
seanhagen / Vagrantfile.rb
Created November 26, 2013 20:07
Example Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "development", primary: true do |dev|
dev.vm.box = "precise-64"
@seanhagen
seanhagen / pre-commit.txt
Created November 19, 2013 20:34
Pre-Commit Hook Example
#!/bin/bash
cd ${0%/*}
cd ../../code
bin/phing -f build.xml analyze-quick
@seanhagen
seanhagen / project.properties
Created November 19, 2013 19:54
Example project.properties file
version=0.1.0
branch=master
url=
urlBase=.192.168.0.161.xip.io
@seanhagen
seanhagen / Emacs Tips.txt
Created November 13, 2013 08:49
Emacs Tips & Tricks
Indent By A Specific Number Of Spaces:
C-u # C-x TAB
Flyspell Correct Word ( cycles )
M-TAB
Flyspell GoTo Next Bad Spelling
C-,