Skip to content

Instantly share code, notes, and snippets.

View millermedeiros's full-sized avatar

Miller Medeiros millermedeiros

View GitHub Profile
@millermedeiros
millermedeiros / example.js
Last active March 9, 2026 15:00
execute multiple shell commands in series on node.js
// USAGE ------
// ============
var shell = require('./shellHelper');
// execute a single shell command
shell.exec('npm test --coverage', function(err){
console.log('executed test');
}});
@millermedeiros
millermedeiros / build.js
Created June 6, 2013 14:26
node.js build script using commander and shelljs
var DIST_FOLDER = '../site/public';
// ----
// more references:
// https://gist.github.com/millermedeiros/2640928
// https://gist.github.com/millermedeiros/4724047
@millermedeiros
millermedeiros / gist:6595977
Last active December 23, 2015 06:49 — forked from rmurphey/gist:5052882
rename "setLocationOnEvent" to "setLocationOnValChange"
/*****************************************************************************
* __ __ _ _ ___ _
* \ \/ _\ /\/\ (_)_ __ | |_ _ _ / __\ __ ___ ___| |__
* \ \ \ / \| | '_ \| __| | | | / _\| '__/ _ \/ __| '_ \
* /\_/ /\ \ / /\/\ \ | | | | |_| |_| | / / | | | __/\__ \ | | |
* \___/\__/ \/ \/_|_| |_|\__|\__, | \/ |_| \___||___/_| |_|
* |___/
*
* Identifying and Eliminating Code Smells
*
@millermedeiros
millermedeiros / osx_setup.md
Last active April 4, 2026 00:28
Mac OS X setup

Setup Mac OS X

I've done the same process every couple years since 2013 (Mountain Lion, Mavericks, High Sierra, Catalina) and I updated the Gist each time I've done it.

I kinda regret for not using something like Boxen (or anything similar) to automate the process, but TBH I only actually needed to these steps once every couple years...

@millermedeiros
millermedeiros / b2g.sh
Created March 25, 2014 16:25
shell aliases and commands to help Gaia/B2G (Firefox OS) development - specially for the "productivity" apps
# based on https://github.com/gnarf/.dotfiles/blob/master/b2g.sh
# =============================================================================
export FIREFOX="/Applications/FirefoxNightly.app/Contents/MacOS/firefox"
export GAIA_DIR="/Users/millermedeiros/Projects/gaia"
alias firefox="$FIREFOX"
alias b2g-bin="$GAIA_DIR/b2g/Contents/MacOS/b2g-bin"
alias b2g="b2g-bin"
@millermedeiros
millermedeiros / store.js
Created September 27, 2014 21:37
gaia calendar helpers
// jshint esnext:true
var app = Calendar.App;
var busyStore = app.store('Busytime');
var calendarStore = app.store('Calendar');
var eventStore = app.store('Event');
var syncController = app.syncController;