Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Chilton chilts

View GitHub Profile
View gist:9263441
diff --git a/mailer.js b/mailer.js
index d5a46c6..5518639 100644
--- a/mailer.js
+++ b/mailer.js
@@ -67,6 +67,13 @@ module.exports = function (config, log) {
var p = P.defer()
var remaining = config.i18n.supportedLanguages.length * types.length;
+
+ function checkRemaining() {
@chilts
chilts / npm-ls-after-npm-dedupe.txt
Last active Aug 29, 2015
npm ls inside fxa-content-server
View npm-ls-after-npm-dedupe.txt
fxa-content-server@0.0.5 /home/chilts/src/chilts-fxa-content-server
├── abbrev@1.0.4
├─┬ argparse@0.1.15
│ ├── underscore@1.4.4
│ └── underscore.string@2.3.3
├── aws-sign@0.3.0
├── aws-sign2@0.5.0 extraneous
├── bluebird@1.0.7
├─┬ bower@1.2.8
│ ├── archy@0.0.2
View gist:9676306
return Client.create(config.publicUrl, 'a+b+c@example.com', pwd)
.then(
function (c) {
return c.destroyAccount()
},
function (err) {
t.equal(err.errno, 101, 'unusual email is not invalid')
}
)
View gist:9676982
test(
'/account/create with a variety of malformed email addresses',
function (t) {
var pwd = '123456'
// See: http://en.wikipedia.org/wiki/Email_address#Valid_email_addresses
var emails = [
'notAnEmailAddress',
'\n@example.com',
'me@hello world.com',
@chilts
chilts / keybase.md
Created Mar 26, 2014
Keybase Proof
View keybase.md

Keybase proof

I hereby claim:

  • I am chilts on github.
  • I am chilts (https://keybase.io/chilts) on keybase.
  • I have a public key whose fingerprint is 233F 80A4 462A B14B AB46 9504 B382 E549 5685 997E

To claim this, I am signing this object:

View message.txt
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.11 (GNU/Linux)
hQEMA1m/rf1rAzwlAQf+IYlOAq4XOQy2dl8BkBWv3/Pa8kB0r2vpOf2eOZ7pzVK8
qWWTOPRetBFqmfsJJlx5q4Y2VA/FOazZZCYi2/2hB/tLRBziLN3t88hpgbYKjuOr
neir4jBbCkfQ8fqCa7gO+x3juQvjhVILLecIPsbNf/hzsiRCIajvI1YirncrkfIT
5z+ZDcntKsCOTgN76HHN0mG9XnvKLGEqQUp1klVb9HarsEd1VMtk5v/YO3Y+9qqh
zQWt3LdieyPDBuhHud0nH9AVOvS71+jf7htKghYB1Tq40VYJVZsc47i8FqAvTuVL
RazWermyYm1LjMsTWzWrkSGOfYfiPNxxVWt+v4BMe9J4AUIDuajXVn0KPWfxp1go
FT6OwliVCktx2qFO+3GpvpnTHUcjP0uQa/nVx1SUHXfLwWLV415dt61RL1RYzA59
View housekeeping.txt
Each repo:
* README.md
* package.json
* description
* repository
* author
* license
* homepage
* bugs
View output.txt
$ node client.js
--- signUp ---
{
"uid": "8bc2add5218d4f10971a139a54ad6a4f",
"sessionToken": "00b4e46c5e94fdec7726ea1bc145363ba8174c8794d470134b6bf1f1364ce5d6",
"authAt": 1427337145
}
prompt: code: fdfe175d9f20fa0d3e1d8e7a61dfa481
--- verifyCode ---
{}
@chilts
chilts / json-verify
Last active Sep 2, 2015
My Release Procedures
View json-verify
#!/usr/bin/env node
// core
var fs = require('fs');
try {
var json = fs.readFileSync(process.argv[2]).toString('utf8');
} catch (e) {
console.log('json-verify: ' + e);
process.exit(2);
View out.txt
chilts@ant:~/go/src$ time env GO_TEST_TIMEOUT_SCALE=10 GOROOT_BOOTSTRAP=$HOME/go-linux-arm-bootstrap ./all.bash
##### Building Go bootstrap tool.
cmd/dist
##### Building Go toolchain using /home/chilts/go-linux-arm-bootstrap.
bootstrap/internal/obj
bootstrap/asm/internal/flags
bootstrap/compile/internal/big
bootstrap/internal/gcprog
bootstrap/internal/obj/arm