Skip to content

Instantly share code, notes, and snippets.

View jbinto's full-sized avatar

Jesse Buchanan jbinto

View GitHub Profile
@jbinto
jbinto / keybase.md
Created October 7, 2014 02:12
keybase.md

Keybase proof

I hereby claim:

  • I am jbinto on github.
  • I am jbinto (https://keybase.io/jbinto) on keybase.
  • I have a public key whose fingerprint is C727 8EB4 A461 0AA2 70B6 9B33 5F08 1903 2C80 49ED

To claim this, I am signing this object:

@jbinto
jbinto / gist:c660d41b84c1d4acbb07
Created September 27, 2014 03:12
EmberJS basics cheatsheet
// Based on concepts learned in ch 3 of http://ember.vicramon.com/the-ember-object
// defining objects
App.InternetUser = Ember.Object.extend();
App.InternetUser.reopen({
intelligence: -50,
status: 'anonymous'
});
// computed properties
@jbinto
jbinto / digitalocean_sizes_nyc_april2014.json
Created April 3, 2014 22:54
DigitalOcean sizes, NYC region, April 2014
{
"status":"OK",
"sizes":[
{
"id":66,
"name":"512MB",
"slug":"512mb",
"memory":512,
"cpu":1,
"disk":20,
@jbinto
jbinto / digitalocean_images_nyc_april2014.json
Created April 3, 2014 22:51
DigitalOcean images, NYC region, April 2014
{
"status":"OK",
"images":[
{
"id":1601,
"name":"CentOS 5.8 x64",
"slug":"centos-5-8-x64",
"distribution":"CentOS",
"public":true,
"regions":[
@jbinto
jbinto / gist:9676545
Last active August 29, 2015 13:57
thinkster.io chapter 6 fixes - user not signed in after registering

Firebase 'Auth' section now 'Simple Login'

In the Firebase Forge, navigate to the 'Auth' section. Under the 'Authentication Providers' header, select the 'Email & Password' option, and check 'Enable'.

It's now just called "Simple Login". See https://pbs.twimg.com/media/BjMkJAjCMAAvCGT.png

User is not signed in after registering

Now when we register, we should be redirected to the posts page and a log out button should appear in the navbar.

@jbinto
jbinto / gist:9665977
Created March 20, 2014 15:11
Make Sublime Text not search through JS vendor/generated code (e.g. typical yeoman project)

In Preferences.sublime-settings (press CMD + , on OS X), add the following:

"folder_exclude_patterns": [".svn", ".git", ".hg", ".sass-cache", ".tmp", "node_modules", "dist", "bower_components"]
@jbinto
jbinto / gist:9663989
Created March 20, 2014 13:43
thinkster.io chapter 4 fixes - Firebase not installed, JS files not included

While walking through Thinkster.io's AngularJS tutorial chapter 4 (Three-way data binding with a real-time server), I encountered some problems.

The tutorial advises us to:

  • run bower install angularfire --save
  • add firebase to the list of required modules
  • add a constant FIREBASE_URL to our app

After implementing the posts functionality, I tried it in the browser and got the following error (in Chrome console):

@jbinto
jbinto / gist:9621435
Created March 18, 2014 14:41
npm zsh completion broken
% npm egrep: empty (sub)expression 1 ↵
\"\$\{COMP_WORDS\[@\]\}\"
\"\$\{words\[@\]\}\"
\#
\#\#\#-begin-npm-completion-\#\#\#
\#\#\#-end-npm-completion-\#\#\#
\$\(COMP_CWORD=\$\(\(CURRENT-1\)\)
\$\?
\&\>/dev/null\;
@jbinto
jbinto / gist:9620922
Created March 18, 2014 14:16
'yo angular foo' hangs at jpegtran-bin, bower asking a question
# See https://github.com/yeoman/generator-angular/issues/505
# Below: output from 'yo angular foo' (or what was left in scrollback buffer)
npm http 200 https://registry.npmjs.org/grunt-karma/-/grunt-karma-0.8.2.tgz
npm http 200 https://registry.npmjs.org/load-grunt-tasks/-/load-grunt-tasks-0.2.1.tgz
npm http 200 https://registry.npmjs.org/grunt/-/grunt-0.4.4.tgz
npm http 200 https://registry.npmjs.org/time-grunt/-/time-grunt-0.2.10.tgz
npm http 200 https://registry.npmjs.org/grunt-autoprefixer/-/grunt-autoprefixer-0.4.2.tgz
npm http GET https://registry.npmjs.org/globule
npm http GET https://registry.npmjs.org/google-cdn
@jbinto
jbinto / howto-recover-google-authenticator-keys.txt
Created February 8, 2014 04:20
Recovering Google Authenticator keys from Android device for backup
### Last tested February 7 2014 on a Galaxy S3 (d2att) running Cyanogenmod 11 nightly, with Google Authenticator 2.49.
### Device with Google Authenticator must have root.
### Computer requires Android Developer Tools and SQLite 3.
### Connect your device in USB debugging mode.
$ cd /tmp
$ adb root
$ adb pull /data/data/com.google.android.apps.authenticator2/databases/databases