Skip to content

Instantly share code, notes, and snippets.

View kelsin's full-sized avatar

Christopher Giroir kelsin

View GitHub Profile
@kelsin
kelsin / gist:1374470
Created November 17, 2011 20:47
Javadoc-help Install
;; Javadoc Help
(autoload 'javadoc-lookup "javadoc-help" "Look up Java class in Javadoc." t)
(autoload 'javadoc-help "javadoc-help" "Open up the Javadoc-help menu." t)
(autoload 'javadoc-set-predefined-urls "javadoc-help" "Set pre-defined urls." t)
(global-set-key [f8] 'javadoc-lookup)
(global-set-key [(shift f8)] 'javadoc-help)
@kelsin
kelsin / gist:1367092
Created November 15, 2011 13:39
Git home directory checkout
git init
git remote add origin git@github.com:Kelsin/configs.git
git fetch
git branch master origin/master
git checkout master
@kelsin
kelsin / ability.rb
Created August 10, 2011 16:54
CanCan rules in engines and main apps
# This is your main app/models/ability.rb file in your app
class Ability < Namespace::Ability
def initialize(user)
super
# Main app CanCan rules
end
end
@kelsin
kelsin / oauth-description.md
Last active August 29, 2015 14:15
OAuth Description

OAuth is a standard way of a user allowing access to some of their data from one website to another.

When you use "Login with Battle.net" it's the same technology that powers "Login with Facebook" or "Login with Twitter" buttons that you may have seen in other places on the internet. Our websites sends you to Battle.net where you would log in as normal (including using your authenticator). When you type in your username and password, notice that you are on Battle.net websites and it's secure (via the lock icon in your brower's address bar). You are logging in with your credentials to Battle.net, not our site.

What happens afterword is rather technical, but basicaly you are shown a screen where you grant our site access to see your list of wow characters. The data about your wow characters is the same public data that appears on your armory page. So by logging in with battle.net, our site gets this information about you:

  • Your Battle.net account ID
  • Your Battle.net battle tag
  • If you give us permission:
@kelsin
kelsin / rune-bar.txt
Last active August 29, 2015 14:13
DK Weak Auras
deeZYaqjrs6wcjTlPQQmmHWXKWYKiptQyAesxtKY2iq9nPQY4iq6CeiUhHs7JqXbLOSqaEijjtui6IcPSrHeFuePrkr1jjeVuivZuQQQUPiIDkPFsadLKuDuPQklvKQNQAQI6QKKYxfj1Cjj2l6VsXGLQCyQSya5XuLjtIltzZsPptqJMK60GEnHQztvDBHA3K63qnCGoUijworphY0vUUGTls8DruJhqDEry9svz)sLMfmZ7yMJhXxQ)v0)IO)jkFmVcVcZ8jeOTfzJ1OkO8iZVv1Xq94biqolqs6)rlkzEPjeI15eGgVqjoaYRdXzjuOqtIyTGhQWNEqBD7bWj59XofM5vGTTqVG)sWmFCWFqM544LopJz(4G)GmZXXhqwJNVdH4Nmy8Z5B6XmFCWFqM54498DieZ8iOwOVXhz0klxE0RIK0YZC8sSVXmFCWFqM5444nGbDAftHaXX7XmRfmZNqG2wKnwJArPi49cOHJZgWt1avCZ4dGkUz8qpSMa4NekuOjzMpGSgzqBeaFaznqDkMezeaVxanCCJAOIXpySPWhqwtqdhbWVeGgpAUfq8G4KnjFjEqCYMSbdAs3WsEXiwEpCmqyqmupudg0KUHL8IrS8wkME8rAUPUBVORHcvVU9spOn(aYA8WXaHbXq9qeaFqBPy6X7cdZhqwJI5M60dAJaXldAJ1s8bK1aIt2KeaVhogimigQhIVehpAqpXtezq6geRjq8Ty94JIe2x3E9xWPiDZ1TxoZR2GcvpwlIG3h7uyMxb22c9c(lbZ8Xb)bzMJJx68mM5Jd(dYmhhFaznE(oeIa4NZ30Jz(4G)GmZXX757qiM5rqTqFJpYOvwU8OxfjPLN54LyFJz(4G)GmZXXX3I17W(mwlkXRarG(UeFopXr8PkIpgkLyjbWlnHqSoNa04Nb8csJ3PHXUbXAM5rZjhZ8lbOXdknKnEqPHSX36umo(wOgIuZm)saA8GsdzJhuAiB8TofJJJhQHRXdhd6BZuyTGFgWlinEr0ZKTop
@kelsin
kelsin / grid-2-profile.txt
Last active August 29, 2015 14:13
Grid 2 Profile
[=== Default profile ===]
30347C620052405AB580DE2A4E719A296819C13A8564A2FC0926A119AB688AD6
444FD0A03E0883780CA34058E02092B0984E125A431980E225A8D8848E3225A6
429A2E4209AE52211DC4405DD4422DE4AAF9849C050295A840F45A9A24759459
ADA4AA48FA84481B80A0C954050DA525522B75DF5405438114E031613AAE1345
3918ABC82B919AE33923A1193D8ACB625599D28BD49A67315FB143C10D172552
A6934E930C471D5742D6742AEB311A1F054EC3496D39AAADF054DB93E5AD8830
BEE871CC87AA63F7109229A006083E54C00454881E9C149F871781022DD1FA8D
595814EB867375BDDC5E7757ED4C209D54C00454881E9C149F2E030446B09A27
EEABB83C001993E51BB9B867575BDDC5E7757E979712BE71CD1F62618CE2F246
@kelsin
kelsin / subtlety.tmw
Last active August 29, 2015 14:10
Rogue Subtlety Tell Me When export
^1^T^SNumGroups^N2 ^SGroups^T ^N1^T ^SPoint^T ^Sy^F7459061113028608 ^f-48^Sx ^F-4960995390783488^f-45 ^t^SRole^N1 ^SColumns^N5 ^SOnlyInCombat^B ^STree2^b ^SGUID^STMW:group:1KVCcgq_hOx2 ^STree1^b ^SIcons^T ^N1^T ^SType^Scooldown ^SName^SEviscerate ^SGUID^STMW:icon:1KVCegGqASOz ^SFakeHidden^B ^SConditions^T ^N1^T ^SType^SCOMBO ^SOperator^S>= ^SLevel^N5 ^t^Sn^N1 ^t^SEnabled^B ^t^N2^T ^SShowTimer^B ^SBuffOrDebuff^SHARMFUL ^SType^Sbuff ^SName^SRupture ^SGUID^STMW:icon:1KVCegGv6G2c ^SShowTimerText^B ^SShowWhen^N3 ^SUnit^Starget ^SDurationMaxEnabled^B ^SFakeHidden^B ^SOnlyMine^B ^SConditions^T ^N1^T ^SType^SCOMBO ^SOperator^S>= ^SLevel^N5 ^t^Sn^N1 ^t^SEnabled^B ^SDurationMax^N8 ^t^N3^T ^SShowTimer^B ^SType^Sbuff ^SName^SSlice~`and~`Dice ^SGUID^STMW:icon:1KVCegGx62r_ ^SDurationMaxEnabled^B ^SShowTimerText^B ^SShowWhen^N3 ^SEnabled^B ^SFakeHidden^B ^SConditions^T ^N1^T ^SType^SCOMBO ^SOperator^S>= ^SLevel^N5 ^t^Sn^N1 ^t^SOnlyMine^B ^SDurationMax^N10 ^t^N4^T ^SShowTimer^B ^SBuffOrDebuff^SHARMFUL ^SType^Sbuff ^SName^SHe

Keybase proof

I hereby claim:

  • I am kelsin on github.
  • I am kelsin (https://keybase.io/kelsin) on keybase.
  • I have a public key whose fingerprint is DD39 C186 1B52 7AF3 9D45 2ADC 501E A61C D4E2 0702

To claim this, I am signing this object:

@kelsin
kelsin / home.sh
Last active August 29, 2015 14:01
Installing a new server with Chef
# Setup my home directory git
# Make sure you're ssh'd to the server with agent forwarding
cd
git init .
git remote add origin git@github.com:Kelsin/configs.git
git fetch origin
rm .bashrc
rm .bash_logout
git checkout master
@kelsin
kelsin / app.js
Last active August 29, 2015 14:01
Sample express app
var express = require('express');
var app = express();
// Load routes
require('./src/routes')(app);