# stop active raid
mdadm --stop /dev/md[01]
# destroy partition table on hdds
dd if=/dev/zero of=/dev/sda bs=1M count=512
dd if=/dev/zero of=/dev/sdb bs=1M count=512
# create new partition table
sgdisk -og /dev/sda| """ | |
| Thread pool extensions to SocketServer. | |
| """ | |
| import Queue | |
| import SocketServer | |
| import sys | |
| import threading |
| #!/usr/bin/env bash | |
| # File name | |
| readonly PROGNAME=$(basename $0) | |
| # File name, without the extension | |
| readonly PROGBASENAME=${PROGNAME%.*} | |
| # File directory | |
| readonly PROGDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) | |
| # Arguments | |
| readonly ARGS="$@" |
| #!/bin/sh | |
| libressl_version=libressl-2.5.1 | |
| libressl_archive=${libressl_version}.tar.gz | |
| if [ -f ${libressl_archive} ] | |
| then | |
| : | |
| else | |
| wget -O ${libressl_archive} https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${libressl_archive} |
| #!/usr/bin/env bash | |
| # | |
| # Author: Markus (MawKKe) ekkwam@gmail.com | |
| # Date: 2018-03-19 | |
| # | |
| # | |
| # What? | |
| # | |
| # Linux dm-crypt + dm-integrity + dm-raid (RAID1) | |
| # |
| #!/usr/bin/env bash | |
| set -e | |
| set -u | |
| set -o pipefail | |
| show_help() { | |
| cat << EOF | |
| Usage: $(basename "$0") <options> | |
| -h, --help Display help |
This exemplary initial setup uses two devices /dev/sdb and /dev/sdc but can be applied to any amount of devices by following the steps with additional devices.
Create keyfile:
dd bs=64 count=1 if=/dev/urandom of=/etc/cryptkey iflag=fullblock
chmod 600 /etc/cryptkeyThis note describes how to connect two networks/devices/VMs over public network using Wireguard with Layer 2 support (ARP, IPv6 link-local, etc).
This can also be achieved using SSH and its "tap" tunnel, however, it does not provide the same level of latency and bandwidth as full-blown VPN such as Wireguard.
In addition, this note describes how to tunnel Wireguard over TCP connection. This may be of use if you encounter firewall in-between so, for instance, you can use TCP port 443 only.
The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'instead ofconst foo = require('foo')to import the package. You also need to put"type": "module"in your package.json and more. Follow the below guide. - If the package is used in an async context, you could use
await import(…)from CommonJS instead ofrequire(…). - Stay on the existing version of the package until you can move to ESM.
| <?xml version="1.0"?> | |
| <Alias targetDevice1="Logitech G923 TRUEFORCE Racing Wheel PS USB" | |
| targetDevice2="Logitech G923 TRUEFORCE Racing Wheel PS" | |
| targetProductGuid="{C266046D-0000-0000-0000-504944564944}"> | |
| <Axis axis="x" name="Steering" /> | |
| <Axis axis="y" name="Gas" /> | |
| <Axis axis="rz" name="Brake" /> | |
| <Axis axis="slider:0" name="Clutch" /> | |
| <Button number="1" name="X" /> | |
| <Button number="2" name="Square" /> |