Skip to content

Instantly share code, notes, and snippets.

@joshmanders
joshmanders / README.md
Last active November 9, 2020 13:48
My Docker Command

My Docker Command

When working with docker toolbox, sometimes I type get tripped up trying to type docker-machine env default and accidentally type docker machine env default instead. This bash script is a helper to allow you to do just that.

Put it in your $PATH and chmod +x my-docker. Then create an alias in your profile with alias docker="my-docker"

Now when you type docker machine env this will automatically proxy anything after machine to docker-machine.

Same goes for docker compose up proxies to docker-compose up.

@hownowbrowncow
hownowbrowncow / gist:9dc43046657d7b3fa7db842913eb60f9
Last active April 10, 2017 17:44
A+ Observatory Nginx Config
server {
listen 80;
server_name example.com www.example.com;
rewrite ^ https://$host$request_uri? permanent;
}
server {
listen 443 ssl;
server_name example.com www.example.com;