sudo apt install putty-tools
puttygen {file}.ppk -O private-openssh -o {file}.pem
chmod 400 {file}.pem
ssh -i {file}.pem {user}@{server}
#!/usr/sbin/nft -f | |
flush ruleset | |
table inet filter { | |
chain input { | |
type filter hook input priority 0; policy drop; | |
ct state invalid counter drop comment "early drop of invalid packets" | |
ct state {established,related} counter accept comment "accept all connections related to our sessio> | |
iifname "tailscale0" accept |
MIT License | |
Copyright (c) 2021 Daniel Ethridge | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
#!/usr/bin/env bash | |
# NOTE: This will let anyone who belongs to the 'pcap' group | |
# execute 'tcpdump' | |
# NOTE2: User running the script MUST be a sudoer. It is | |
# convenient to be able to sudo without a password. | |
sudo groupadd pcap | |
sudo usermod -a -G pcap $USER |
qemu-img convert -O raw <infile.(vdi|vmdk|$whatever)> /dev/zvol/rpool/data/<vmid>-disk0 |
import sys | |
import subprocess | |
from subprocess import CompletedProcess | |
import logging | |
from typing import List | |
import tempfile | |
logging.basicConfig(level=logging.DEBUG, stream=sys.stdout) | |
import sys | |
import subprocess | |
from subprocess import CompletedProcess | |
import logging | |
from typing import List | |
from pathlib import Path | |
import os | |
logging.basicConfig(level=logging.DEBUG, stream=sys.stdout) |
Here goes. | |
ls /usr/src/linux-headers-* -d | sed -e 's/.*linux-headers-//' | \ | |
sort -V | tac | sudo xargs -n1 /usr/lib/dkms/dkms_autoinstaller start | |
Run as root. |
#!/usr/local/env bash | |
# Register vultr.com with free credit https://www.vultr.com/?ref=8221367-4F | |
# Create vps with 5usd price | |
# Tested on Ubuntu 18.04, Debian 9.6 | |
# How to... | |
# 1. Save this file as softether-installer.sh | |
# 2. chmod +x softether-installer.sh | |
# 3. Run bash file | |
# > ./softether-installer.sh | |
# Or just |