Skip to content

Instantly share code, notes, and snippets.

Avatar

Kris Williams kriswill

View GitHub Profile
@kriswill
kriswill / bower.json
Last active Aug 29, 2015
Ember 1.9.1 + handlebars 2.0.0 + ember-cli 0.1.5 working
View bower.json
{
"dependencies": {
"handlebars": "2.0.0",
"jquery": "^1.11.1",
"ember": "~1.9.1",
"ember-data": "1.0.0-beta.14.1",
"ember-resolver": "~0.1.10",
"loader.js": "stefanpenner/loader.js#1.0.1",
"ember-cli-shims": "stefanpenner/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "rwjblue/ember-cli-test-loader#0.0.4",
View token.js
var jwt = require('jsonwebtoken')
module.exports = {
issue: function(payload) {
sails.log.silly(__filename + ':' + __line + ' [Service.Passport.deserializeUser() called]')
return jwt.sign(payload, sails.config.jwt.secret)
},
verify: function(token, next) {
View passport.js
/**
* Passport Model
*
* The Passport model handles associating authenticators with users. An authen-
* ticator can be either local (password) or third-party (provider). A single
* user can have multiple passports, allowing them to connect and use several
* third-party strategies in optional conjunction with a password.
*/
var bcrypt = require('bcrypt')
@kriswill
kriswill / schema.sql
Created Feb 6, 2015
oauth postgres schema
View schema.sql
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
@kriswill
kriswill / transcript
Created Feb 19, 2015
Comcast transcript 2/19/2015
View transcript
user KRIS has entered room
analyst Khareen has entered room
Khareen: Hello KRIS_, Thank you for contacting Comcast Live Chat Support. My name is Khareen. Please give me one moment to review your information.
Khareen: Hi! I hope you are doing well. I would be more than happy to assist you with your concern today.
KRIS_: My Issue: intermittent connection issues to various websites, not all but many.
@kriswill
kriswill / log
Created Feb 23, 2015
boot2docker up --verbose
View log
→ boot2docker up --verbose
Boot2Docker-cli version: v1.5.0
Git commit: ccd9032
2015/02/22 17:00:12 executing: VBoxManage showvminfo boot2docker-vm --machinereadable
2015/02/22 17:00:12 executing: VBoxManage guestproperty set boot2docker-vm /VirtualBox/GuestAdd/SharedFolders/MountPrefix /
2015/02/22 17:00:12 executing: VBoxManage guestproperty set boot2docker-vm /VirtualBox/GuestAdd/SharedFolders/MountDir /
2015/02/22 17:00:12 executing: VBoxManage sharedfolder add boot2docker-vm --name Users --hostpath /Users --automount
VBoxManage: error: Shared folder named 'Users' already exists
VBoxManage: error: Details: code VBOX_E_OBJECT_IN_USE (0x80bb000c), component SessionMachine, interface IMachine, callee nsISupports
VBoxManage: error: Context: "CreateSharedFolder(Bstr(name).raw(), Bstr(hostpath).raw(), fWritable, fAutoMount)" at line 1009 of file VBoxManageMisc.cpp
@kriswill
kriswill / sane up
Last active Aug 29, 2015
→ sane new meetup-demo --docker -d mongo --verbose
View sane up
kris ~/src/meetup-demo
→ sane up
events.js:141
throw er; // Unhandled 'error' event
^
Error: spawn ember ENOENT
at exports._errnoException (util.js:734:11)
at Process.ChildProcess._handle.onexit (child_process.js:1022:32)
at child_process.js:1114:20
at process._tickCallback (node.js:337:11)
View gist:1f45dc92faa1bc4c12ab
FROM mini/base
RUN apk-install \
bash \
tar \
curl \
git \
c-ares \
libgcc \
libstdc++ \
@kriswill
kriswill / ed-gliese58.ahk
Created May 24, 2015
Elite Gliese 58/HIP 8830 macros
View ed-gliese58.ahk
#SingleInstance force
^g::
setkeydelay, 10, 10
PlotStar("gliese 58", 1000)
exit
^h::
setkeydelay, 10, 10
PlotStar("hip 8830", 2100)
View Mongouhub-quit-unexpectedly-209
Process: MongoHub [18473]
Path: /Applications/MongoHub.app/Contents/MacOS/MongoHub
Identifier: com.thepeppersstudio.MongoHub
Version: 2.0.9 (2.0.9)
Code Type: X86-64 (Native)
Parent Process: launchd [129]
Date/Time: 2010-05-29 22:58:41.429 -0700
OS Version: Mac OS X 10.6.3 (10D2094)
Report Version: 6
You can’t perform that action at this time.