This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
Backtrace = {}; | |
Backtrace.Router = (function() { | |
Router.prototype.optionalParam = /\((.*?)\)/g; | |
Router.prototype.namedParam = /:\w+/g; |