brew install mongodb
Set up launchctl to auto start mongod
$ ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
/usr/local/opt/mongodb/
is a symlink to /usr/local/Cellar/mongodb/x.y.z
(e.g., 2.4.9
)
#!/bin/bash | |
#configurable variables | |
SCHEME_NAME="SCHEME-NAME-HERE" | |
DEVELOPER_NAME="iPhone Distribution: YOUR_DEVELOPER_NAME_HERE (ID_HERE)" | |
PROVISIONING_PROFILE="/ABSOLUTE/PATH/TO/PROVISIONING/PROFILE_HERE.mobileprovision" | |
USE_DEFAULT_DEVELOPER_NAME=true | |
USE_DEFAULT_PROVISIONING_PROFILE=true | |
OPEN_DIR_WHEN_FINISHED=false |
# ----------------------------------------------------------------- | |
# User-Agent strings that are worth blocking with the following rule | |
# in haproxy to prevent your content being stolen, stop spammers and | |
# to limit your bandwidth usage. | |
# | |
# acl badbots hdr_reg(User-Agent) -i -f /etc/haproxy/badbots.lst | |
# block if badbots | |
# | |
# By Danny Sheehan | |
# http://www.setuptips.com |
# https://goldmann.pl/blog/2014/07/30/running-docker-containers-as-systemd-services/ | |
[Unit] | |
Description=MariaDB container | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
User=php | |
Restart=always |
#!/usr/bin/env bash | |
# How to start: | |
# 1. Sign up for DigitalOcean with this link https://www.digitalocean.com/?refcode=7bf219507e61 | |
# -- it will be filled with $10 to start out (if you use the above link) | |
# 2. Go to https://cloud.digitalocean.com/settings/applications and find you API key | |
# 3. In your shell, run 'export DIGITALOCEAN_TOKEN="INSERT TOKEN HERE"', without the outer quotes. | |
# 4. `brew install jq` | |
# 5. `./digitalocean-proxy` | |
# 6. When you are done, press CTRL+C ONCE, and everything will be cleaned up. |
This is my first public gist... just a test. |