Skip to content

Instantly share code, notes, and snippets.

View cmcavoy's full-sized avatar

Chris McAvoy cmcavoy

View GitHub Profile
@cmcavoy
cmcavoy / gist:10764441
Created April 15, 2014 19:42
keybase.md
### Keybase proof
I hereby claim:
* I am cmcavoy on github.
* I am cmcavoy (https://keybase.io/cmcavoy) on keybase.
* I have a public key whose fingerprint is 7944 78E6 B496 EB2B E3E8 D2B1 1878 30D5 0121 BE2F
To claim this, I am signing this object:
.vco-storyjs{}.vco-storyjs div *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}
.vco-storyjs h1,.vco-storyjs h2,.vco-storyjs h3,.vco-storyjs h4,.vco-storyjs h5,.vco-storyjs h6,.vco-storyjs p,.vco-storyjs blockquote,.vco-storyjs pre,.vco-storyjs a,.vco-storyjs abbr,.vco-storyjs acronym,.vco-storyjs address,.vco-storyjs cite,.vco-storyjs code,.vco-storyjs del,.vco-storyjs dfn,.vco-storyjs em,.vco-storyjs img,.vco-storyjs q,.vco-storyjs s,.vco-storyjs samp,.vco-storyjs small,.vco-storyjs strike,.vco-storyjs strong,.vco-storyjs sub,.vco-storyjs sup,.vco-storyjs tt,.vco-storyjs var,.vco-storyjs dd,.vco-storyjs dl,.vco-storyjs dt,.vco-storyjs li,.vco-storyjs ol,.vco-storyjs ul,.vco-storyjs fieldset,.vco-storyjs form,.vco-storyjs label,.vco-storyjs legend,.vco-storyjs button,.vco-storyjs table,.vco-storyjs caption,.vco-storyjs tbody,.vco-storyjs tfoot,.vco-storyjs thead,.vco-storyjs tr,.vco-storyjs th,.vco-storyjs td,.vco-storyjs .vco-container,.vco-storyjs .content-container,.vco
curl -X POST -d "{bot: { name: 'WHAT UP',group_id: 'GROUP'}}" https://api.groupme.com/v3/bots?token=TOKEN
(TOKEN and GROUP are replaced with actual groups and tokens)
mongo --eval 'db.users.count()' openbadger
1) A user earns a STEAM badge on CSOL.
2) CSOL / OpenBadger makes a call to iRemix and passes the username to iRemix
3) iRemix returns a link with an access code to allow the user to sign up to CSOL / OpenBadger.
4) User gets an email that says they earned a STEAM badge, and the link to sign up
5) iRemix calls to OpenBadger with the username to collect badges.
6) iRemix issues badges via OpenBadger.
the thing we'll have trouble with pii wise is 5) iRemix calls to OpenBadger with the username to collect badges.
mysql> show tables;
+----------------+
| Tables_in_csol |
+----------------+
| Applications |
| Claims |
| Evidences |
| Favorites |
| Guardians |
| Learners |
12:23 PM:~/projects/csol-site
$ node bin/migrate-db
Executing: CREATE TABLE IF NOT EXISTS `SequelizeMeta` (`from` VARCHAR(255), `to` VARCHAR(255), `id` INTEGER NOT NULL auto_increment , PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Executing: SELECT * FROM `SequelizeMeta` ORDER BY id DESC LIMIT 1;
Executing migration: 20130530095331-add-user-real-names.js
Executing: ALTER TABLE `Learners` ADD `firstName` VARCHAR(255);
Executing: ALTER TABLE `Learners` ADD `lastName` VARCHAR(255);
Error: ER_DUP_FIELDNAME: Duplicate column name 'lastName'
at Query.Sequence._packetToError (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/mysql/lib/protocol/sequences/Sequence.js:32:14)
info: 127.0.0.1 - - [Fri, 31 May 2013 22:41:07 GMT] "POST /signup HTTP/1.1" 303 - "http://localhost:8888/signup" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:21.0) Gecko/20100101 Firefox/21.0"
Executing: SELECT * FROM `Learners` WHERE `Learners`.`id`=1 LIMIT 1;
info: API request: "GET http://openbadger-csol.mofostaging.net/v2/user" Error code=ECONNRESET
undefined
/home/cmcavoy/Dropbox/projects/csol-site/openbadger.js:173
badges = _.map(data.badges, normalizeBadgeInstance)
^
TypeError: Cannot read property 'badges' of undefined
at Api.getUserBadges.func (/home/cmcavoy/Dropbox/projects/csol-site/openbadger.js:173:28)
Executing: SELECT * FROM `Learners` WHERE `Learners`.`id`=6 LIMIT 1;
Executing: SELECT * FROM `Claims` WHERE `Claims`.`code`='4xad-cyd3-buew-tet2' AND `Claims`.`LearnerId`=6 LIMIT 1;
info: - - - [Fri, 31 May 2013 16:58:05 GMT] "POST /claim?code=4xad-cyd3-buew-tet2 HTTP/1.1" ER_NO_SUCH_TABLE - "http://localhost:8888/claim?code=4xad-cyd3-buew-tet2" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:21.0) Gecko/20100101 Firefox/21.0"

Builder Bot

Things it should do

Watch for

  1. tags in repositories
  2. pull requests against repositories by trusted developers

When we see something

  1. build it