Skip to content

Instantly share code, notes, and snippets.

docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' [CONTAINER ID]
eval "$(docker-machine env <docker machine name>)"
Stop the container(s) using the following command:
docker-compose down
Delete all containers using the following command:
docker rm -f $(docker ps -a -q)
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
From: https://coderwall.com/p/euwpig/a-better-git-log
import time
from WSDiscovery import WSDiscovery, QName
from onvif import ONVIFCamera, ONVIFError
import urllib.parse
ONVIF_TYPE_NVT = QName('http://www.onvif.org/ver10/network/wsdl', 'NetworkVideoTransmitter')
try_auth = [
('admin', ''),
('admin', 'ms1234'),
]