Skip to content

Instantly share code, notes, and snippets.

View isner's full-sized avatar

Matt Isner isner

View GitHub Profile

Orphan release process:

First, assuming you have stuff built (gulp or grunt build), copy the the dist directory and temporarily store it anywhere outside of the repo

Then execute the following...

  • git checkout --orphan release
  • git rm --cached $(git ls-files)
  • git clean -d -x -f

You should have an empty repo at this point...

@alyssaq
alyssaq / gulpfile.js
Last active February 13, 2024 07:55
browserify, babel, gulp, glob, vinyl-source-stream, uglify
/*
npm install gulp gulp-load-plugins gulp-uglify
npm install browserify babelify glob vinyl-source-stream vinyl-buffer
More examples: https://github.com/gulpjs/gulp/tree/master/docs/recipes
*/
var gulp = require('gulp')
var $ = require('gulp-load-plugins')()
var browserify = require('browserify')
@Kartones
Kartones / postgres-cheatsheet.md
Last active June 7, 2024 13:13
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)