Skip to content

Instantly share code, notes, and snippets.

@nbkhope
nbkhope / git-push-origin-branch-name.sh
Last active January 15, 2018 05:44
Push the current branch to origin with the `gp` command
gp() {
if [ -d ".git" ]
then
BRANCH_NAME="$(git branch | grep '*' | cut -d' ' -f2)"
git push origin "$BRANCH_NAME"
fi
}
@nbkhope
nbkhope / app.js
Created March 16, 2018 23:28 — forked from nulltask/app.js
Output CSV in Express
/**
* Module dependencies.
*/
var express = require('express')
, app = module.exports = express.createServer();
// Configuration
app.use(app.router);