Skip to content

Instantly share code, notes, and snippets.

View kriswill's full-sized avatar

Kris Williams kriswill

View GitHub Profile
@kriswill
kriswill / ed-gliese58.ahk
Created May 24, 2015 09:56
Elite Gliese 58/HIP 8830 macros
#SingleInstance force
^g::
setkeydelay, 10, 10
PlotStar("gliese 58", 1000)
exit
^h::
setkeydelay, 10, 10
PlotStar("hip 8830", 2100)
@kriswill
kriswill / gist:1f45dc92faa1bc4c12ab
Created March 13, 2015 19:38
minimal nvm container
FROM mini/base
RUN apk-install \
bash \
tar \
curl \
git \
c-ares \
libgcc \
libstdc++ \
@kriswill
kriswill / sane up
Last active August 29, 2015 14:15
→ sane new meetup-demo --docker -d mongo --verbose
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)
@kriswill
kriswill / log
Created February 23, 2015 01:01
boot2docker up --verbose
→ 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 / transcript
Created February 19, 2015 21:58
Comcast transcript 2/19/2015
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 / schema.sql
Created February 6, 2015 22:59
oauth postgres schema
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 / passport.js
Created February 3, 2015 21:13
Passport model
/**
* 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 / token.js
Created February 3, 2015 20:05
api/service
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) {
@kriswill
kriswill / bower.json
Last active August 29, 2015 14:12
Ember 1.9.1 + handlebars 2.0.0 + ember-cli 0.1.5 working
{
"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",
@kriswill
kriswill / kris.tmTheme
Created July 17, 2012 01:52
Kris' Railscast theme - modified for SublimeText2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Kris - based on Railscasts</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>