Skip to content

Instantly share code, notes, and snippets.

View jackboberg's full-sized avatar

Jack Boberg jackboberg

View GitHub Profile
(function() {
Backtrace = {};
Backtrace.Router = (function() {
Router.prototype.optionalParam = /\((.*?)\)/g;
Router.prototype.namedParam = /:\w+/g;
@jackboberg
jackboberg / deploy-meteor.sh
Last active October 23, 2015 14:27 — forked from fiveisprime/quick-start
Modulus Meteor Quickstart
#!/usr/bin/env bash
meteor create --example leaderboard
modulus project create leaderboard -r node.js -s 512
modulus env set ROOT_URL $(modulus project list | grep leaderboard | awk '{print $4}') -p leaderboard
modulus addons add mongo:base -p leaderboard
modulus deploy -p leaderboard
@jackboberg
jackboberg / script-template.sh
Last active October 3, 2024 16:54 — forked from m-radzikowski/script-template.sh
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
Script description here.