Skip to content

Instantly share code, notes, and snippets.

@emgee3
emgee3 / deploy.sh
Last active April 3, 2017 13:54
Deploy script for self-hosted Meteor deployments
#!/usr/bin/env bash
#
#---------------------------------------------------
# Meteor Deployment Script
#---------------------------------------------------
#-REQS----------------------------------------------
#
# Remote server should have the following:
# - Allow passwordless SSH logins

Keybase proof

I hereby claim:

  • I am emgee3 on github.
  • I am emgee (https://keybase.io/emgee) on keybase.
  • I have a public key whose fingerprint is 731F 257E A941 33DA 2350 8F20 7EE4 FEC5 A21F C089

To claim this, I am signing this object:

@emgee3
emgee3 / installHAProxy.sh
Created July 30, 2014 09:55
Install HAProxy in Ubuntu 14.04 or 12.04
#!/usr/bin/env bash
#
# Install HAProxy
# Script works on Ubuntu 12.04 and 14.04 only
set -e
set -u
set -o pipefail
@emgee3
emgee3 / installMongo.sh
Last active August 8, 2018 11:58
Compile and install MongoDB with SSL support
#!/usr/bin/env bash
#
# Compile and install MongoDB with SSL support
# tested an works on Ubuntu 12.04 LTS x64 and Ubuntu 14.04 LTS x64
#
set -e
set -u
set -o pipefail
@emgee3
emgee3 / gist:7332090
Created November 6, 2013 07:03
meteor self-destruct code for devel only packages
Meteor.startup(function () {
if (__meteor_runtime_config__) {
if (__meteor_runtime_config__.ROOT_URL.indexOf('localhost') !== -1)
return;
}
console.log("FATAL ERROR --- ");
process.exit();
});