Based on this https://gist.github.com/jayeye/689cb1de2275798659c58c62ab92cfaa
#!/usr/bin/env python3
import ipaddress
import os
import sysBased on this https://gist.github.com/jayeye/689cb1de2275798659c58c62ab92cfaa
#!/usr/bin/env python3
import ipaddress
import os
import sysBased on this https://developer.atlassian.com/server/jira/platform/oauth/
generate private key
openssl genrsa -out jira_privatekey.pem 1024
generate public key
openssl req -newkey rsa:1024 -x509 -key jira_privatekey.pem -out jira_publickey.cer -days 365
openssl pkcs8 -topk8 -nocrypt -in jira_privatekey.pem -out jira_privatekey.pcks8
This uses Linux kernel dyamic debug features
https://www.kernel.org/doc/html/latest/admin-guide/dynamic-debug-howto.html
This asumes that debugfs is mounted under /sys/kernel/debug
echo 'module wireguard +p' | sudo tee /sys/kernel/debug/dynamic_debug/control
| #!/usr/bin/env python3 | |
| # need at least python3.6+ for blake2 | |
| from base64 import b64decode | |
| from hashlib import sha256, blake2s | |
| from ipaddress import ip_address, ip_network | |
| # https://github.com/chmduquesne/wg-ip | |
| def gen_ip(pubkey, subnet=ip_network('fe80::/64')): | |
| """Generate wg-ip compatible addresses from WireGuard public key. | 
atime = off  # Recoding access time on file open is stupid
relatime = on  # writing access time on file write is fine because we are writing anyway.
compression = lz4  # Its faster to compress/decompress on the CPU than it is to wait for the data from HDD/SSD  
recordsize = 128K  # postgres native 8k will give give horrible compression ratio, default 128k is fine
primarycache = metadata # maybe?
| #!/bin/bash | |
| set -euo pipefail | |
| DEFAULT_SUITE="bookworm" | |
| BASE="/var/lib/machines" | |
| ZDATA="rpool/machines" | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root" 1>&2 | |
| exit 1 | 
| // the setup function runs once when you press reset or power the board | |
| void setup() { | |
| // seadista kõik 10 pinni arduino peal väljunditeks | |
| for (int i=2; i<13; i++){ | |
| pinMode(i, OUTPUT); | |
| } | |
| } | |
| // the loop function runs over and over again forever | 
| #!/usr/bin/python3 | |
| c_per_line = 4 | |
| text = """ | |
| What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. | |
| """.strip().upper().replace(".", "").replace("\n", '') | |
| print("64 32 16 8 4 2 1 "*c_per_line) | |
| for word_nr, word in enumerate(text.split(" "), start=1): | 
| sudo lsusb -d 0bda:0165 -v | |
| Bus 005 Device 069: ID 0bda:0165 Realtek Semiconductor Corp. | |
| Device Descriptor: | |
| bLength 18 | |
| bDescriptorType 1 | |
| bcdUSB 2.00 | |
| bDeviceClass 0 | |
| bDeviceSubClass 0 | |
| bDeviceProtocol 0 | 
macOS install itself is quite easy using OSX-KVM scripts
igpu setup is quite easy by following instructions on Arch Linux wiki