Skip to content

Instantly share code, notes, and snippets.

Avatar
🛠️
Coding

auxten auxten

🛠️
Coding
View GitHub Profile
@kekru
kekru / 1-Enable Docker Remote API with TLS client verification.md
Last active Apr 5, 2021
Docker Remote API with client verification via daemon.json
View 1-Enable Docker Remote API with TLS client verification.md

Enable Docker Remote API with TLS client verification

Docker's Remote API can be secured via TLS and client certificate verification.
First of all you need a few certificates and keys:

  • CA certificate
  • Server certificate
  • Server key
  • Client certificate
  • Client key

Create certificate files

View nginx-libressl-static.sh
#!/usr/bin/env bash
# Names of latest versions of each package
export VERSION_PCRE=pcre-8.39
export VERSION_ZLIB=zlib-1.2.8
export VERSION_LIBRESSL=libressl-2.4.2
export VERSION_NGINX=nginx-1.11.3
# URLs to the source directories
export SOURCE_LIBRESSL=http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active Apr 11, 2021
Bash keyboard shortcuts
View 01.bash_shortcuts_v2.md

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@rmascarenhas
rmascarenhas / undo.sh
Created Nov 16, 2012
Undoing your last command
View undo.sh
# undo: reverts the last command, as long as there is a registered handler
# for it.
#
# Usage:
#
# $ undo
#
# There are no options.
#
# There are by default registered handlers for the following commands:
@jordanorelli
jordanorelli / client.go
Created May 7, 2012
rpc server example in go
View client.go
package main
import (
"bufio"
"log"
"net/rpc"
"os"
)
func main() {