Skip to content

Instantly share code, notes, and snippets.

@NotoriousBIT
NotoriousBIT / genCerts.sh
Last active May 2, 2022 14:37
Use TLS (HTTPS) to protect the Docker daemon socket
#! /bin/sh
# https://docs.docker.com/engine/security/protect-access/
echo "# Start"
HOST="cybus.io"
HOSTS="DNS:$HOST,IP:127.0.0.1,IP:172.16.0.10"
echo
echo "# Generate CA private and public keys"
openssl genrsa -out ca-key.pem 4096
var Thread = Java.type("java.lang.Thread");
var System = Java.type("java.lang.System");
var String = Java.type("java.lang.String");
var topic = "service/ping";
function execute(action) {
out("Test Script: " + action.getName());
for (var i = 0; i < 1000; i++) {
randomTimeSeriesPing();
@NotoriousBIT
NotoriousBIT / arch-linux-install
Created March 5, 2020 19:03 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap