This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global core.fileMode false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo env "PATH=$PATH" <the commands> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker build --rm -f "c:\g\cse\mqtt\app\mosquitto_authn\modules\sender\Dockerfile.amd64" -t localhost:5000/sender:0.0.1-amd64 "c:\g\cse\mqtt\app\mosquitto_authn\modules\sender" ; if ($?) { iotedgehubdev start -d "c:\g\cse\mqtt\app\mosquitto_authn\config\deployment.amd64.json" -v } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Register Microsoft key and software repository feed | |
apt-get update | |
apt-get install curl gpg vim | |
curl https://packages.microsoft.com/config/ubuntu/$(awk -F= '$1=="DISTRIB_RELEASE" { print $2 ;}' /etc/lsb-release)/prod.list > ./microsoft-prod.list | |
cp ./microsoft-prod.list /etc/apt/sources.list.d/ | |
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
cp ./microsoft.gpg /etc/apt/trusted.gpg.d/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setup | |
===== | |
Enable docker without TLS | |
------------------------- | |
Docker settings -> General -> Expose docker daemon on tcp://... | |
Create Looback Address | |
---------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Learn About Docker Networks | |
# github/tripdubroot | |
# Docker version 1.12.0-rc2 | |
# build 906eacd | |
# experimental | |
# | |
# https://docs.docker.com/engine/userguide/networking/dockernetworks/#docker-embedded-dns-server | |
# https://docs.docker.com/engine/userguide/networking/configure-dns/ | |
# https://github.com/docker/libnetwork/blob/ed311d050fda7821f2e7c53a7e08a0205923aef5/resolver.go |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
cd registry | |
docker run -d -p 5000:5000 --restart=always --name registry -v $(pwd):/var/lib/registry registry:2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# This file echoes a bunch of color codes to the | |
# terminal to demonstrate what's available. Each | |
# line is the color code of one forground color, | |
# out of 17 (default + 16 escapes), followed by a | |
# test use of that color on all nine background | |
# colors (default + 8 escapes). | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To use common configuration in %APPDATA%\mintty, simply remove this file | |
BoldAsFont=no | |
Transparency=low | |
OpaqueWhenFocused=no | |
ThemeFile=material-hyper.minttyrc | |
CursorType=block | |
Font=Hack | |
FontHeight=10 | |
Locale=en_US | |
Scrollbar=none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker service logs SERVICE -t 2>&1 | sort -k 1 | |
docker-compose logs -t 2>&1 | sort -k 1 |