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)
| #Mounting the share is a 2 stage process: | |
| # 1. Create a directory that will be the mount point | |
| # 2. Mount the share to that directory | |
| #Create the mount point: | |
| mkdir share_name | |
| #Mount the share: | |
| mount_smbfs //username:[email protected]/share_name share_name/ |
| #!/bin/bash | |
| set -eo pipefail | |
| echo "Deleting existing hosting releases" | |
| SITE=$1 | |
| echo "Site: $SITE" | |
| HEADER_AUTH="Authorization: Bearer "$(gcloud auth application-default print-access-token)""; |
| // http://stackoverflow.com/questions/7789826/adb-shell-input-events | |
| adb shell input keyevent 82 | |
| 0 --> "KEYCODE_0" | |
| 1 --> "KEYCODE_SOFT_LEFT" | |
| 2 --> "KEYCODE_SOFT_RIGHT" | |
| 3 --> "KEYCODE_HOME" | |
| 4 --> "KEYCODE_BACK" | |
| 5 --> "KEYCODE_CALL" |
| * spin up a VM on GCE and | |
| install docker (based on [these](https://docs.docker.com/installation/ubuntulinux/) instructions) | |
| ```bash | |
| gcloud compute instances create dave --machine-type n1-standard-1 --image ubuntu-14-04 | |
| gcloud compute ssh dave | |
| wget -qO- https://get.docker.com/ | sh | |
| ``` | |
| * to verify install is working |