Skip to content

Instantly share code, notes, and snippets.

Developing all the things

Matt Chaffe Mattchewone

Developing all the things
Block or report user

Report or block Mattchewone

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Mattchewone /
Created Sep 6, 2018 — forked from joseluisq/
Add Git Branch Name to Terminal Prompt (Mac)

Add Git Branch Name to Terminal Prompt (Mac)


Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {
Mattchewone / media.model.js
Created Feb 22, 2018 — forked from RubyRubenstahl/media.model.js
Mongoose discriminators in feathers-cli generated service.
View media.model.js
// media-model.js - A mongoose model
// See
// for more of what you can do here.
module.exports = function (app) {
const mongooseClient = app.get('mongooseClient');
const { Schema } = mongooseClient;
const options = {
discriminatorKey: 'type',
Mattchewone / authentication.js
Created Jan 26, 2018 — forked from marshallswain/authentication.js
Example tools for using querystring redirects with Feathers OAuth login.
View authentication.js
'use strict';
const authentication = require('feathers-authentication');
const jwt = require('feathers-authentication-jwt');
const local = require('feathers-authentication-local');
const oauth2 = require('feathers-authentication-oauth2');
const GithubStrategy = require('passport-github');
// Bring in the oauth-handler
const makeHandler = require('./oauth-handler');
You can’t perform that action at this time.