On Mac, Homebrew is the de-facto package manager, and Homebrew Cask is the app manager. I’m going to use Cask to install Java 7 and 8.
Install Homebrew Cask first if you haven’t:
brew update
brew tap caskroom/cask
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
| #!/bin/bash | |
| # Wrapper for automated audits, | |
| # using https://github.com/arthepsy/ssh-audit | |
| # | |
| set -euo pipefail | |
| SSHAUDIT="ssh-audit.py" | |
| OPTIONS="--batch --no-colors" | |
| CMD="${SSHAUDIT} ${OPTIONS} $*" |
A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.
Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).
| # Mediawiki, Bugzilla and mediawiki-bugzilla extension | |
| # test setup | |
| version: '2' | |
| services: | |
| mysql: | |
| container_name: mw-bz-mysql | |
| image: mysql | |
| volumes: | |
| - "./data/mysql:/var/lib/mysql" | |
| restart: always |