command | description |
---|---|
ctrl + a | Goto BEGINNING of command line |
This file contains 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
# Basic Makefile for Golang project | |
# Includes GRPC Gateway, Protocol Buffers | |
SERVICE ?= $(shell basename `go list`) | |
VERSION ?= $(shell git describe --tags --always --dirty --match=v* 2> /dev/null || cat $(PWD)/.version 2> /dev/null || echo v0) | |
PACKAGE ?= $(shell go list) | |
PACKAGES ?= $(shell go list ./...) | |
FILES ?= $(shell find . -type f -name '*.go' -not -path "./vendor/*") | |
# Binaries | |
PROTOC ?= protoc |
This file contains 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
# Stop all containers | |
docker stop `docker ps -qa` | |
# Remove all containers | |
docker rm `docker ps -qa` | |
# Remove all images | |
docker rmi -f `docker images -qa ` | |
# Remove all volumes |
This file contains 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
# what we want: | |
# client -> OpenVPN -> Tor -> Internet | |
# Install & configure OpenVPN | |
# https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04 | |
# assumed OpenVPN configuration | |
# 10.8.0.1/24-Subnet | |
# tun0-Interface |
This file contains 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 rm $(docker ps -a -q) | |
function Remove-StoppedContainers { | |
foreach ($id in & docker ps -a -q) { | |
& docker rm $id } | |
} | |
#docker rmi $(docker images -f "dangling=true" -q) | |
function Remove-DanglingImages { | |
foreach ($id in & docker images -q -f 'dangling=true') { | |
& docker rmi $id } |