Skip to content

Instantly share code, notes, and snippets.

XMB5 /
Created November 13, 2020 19:32
generates a self-signed secp256r1 tls key + certificate
# generates a self-signed secp256r1 tls key + certificate
if [ -z "$1" ] || [ -z "$2" ]; then
echo "usage: $0 <key.pem> <cert.pem>" 2>& 1
exit 1
openssl req -new -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -x509 -nodes -batch -days 36500 -out "$2" -keyout "$1"
XMB5 /
Created June 11, 2019 00:50
Command line download speed test, requires aria2c
aria2c --dir / -o /dev/null --allow-overwrite=true --file-allocation=none $LINKS
XMB5 / clion-install-1line.ps1
Last active February 26, 2019 19:38
Install CLion and the Cygwin toolchain with one powershell line
iex ((New-Object System.Net.WebClient).DownloadString(''))
XMB5 / clion-install.ps1
Last active December 19, 2019 20:56
Jetbrains Product Installer without admin
$ideCode = Read-Host 'CL - Clion
PC - Pycharm
IIU - IntelliJ
WS - WebStorm
Enter an IDE code'
cd ~\Desktop
$WshShell = New-Object -comObject WScript.Shell
echo "Downloading 7-zip..."
Invoke-WebRequest -Uri '' -OutFile 7za.exe -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox
echo "Fetching product info..."
XMB5 / arch-install-guide.txt
Created January 5, 2019 03:10
Arch Linux Install Guide
#download the arch linux ISO from
#write the ISO onto an installation medium like a DVD or flash drive
#boot the server off of the installation medium
#now we install arch linux from the bootable medium
#based off of
sh archfi
Disk Partitions
Auto Partitions (gpt)
iex ((New-Object System.Net.WebClient).DownloadString(''))
XMB5 / setup.ps1
Last active November 27, 2018 01:55
#iex ((New-Object System.Net.WebClient).DownloadString(''))
cd ~\Desktop
Import-Module BitsTransfer
Add-Type -AssemblyName System.IO.Compression.FileSystem
function Unzip
param([string]$zipfile, [string]$outpath)
XMB5 /
Last active June 3, 2023 20:33
Easy automatic OpenVPN setup for Ubuntu Server
#easy openvpn server setup for ubuntu
read -p "port (1-65535): " PORT
read -p "protocol (udp or tcp): " PROTOCOL
read -p "encrypt (y or n): " ENCRYPT
read -p "hmac (y or n): " HMAC
read -p "xor scramble (y or n): " SCRAMBLE
read -p "compress (y or n): " COMPRESS_YN
read -p "network number (0-255): " NETWORK_NUM
XMB5 /
Created September 28, 2018 23:52
extract ipsw root file system on linux
USAGE=$'extract ipsw root file system on linux
usage: iPhone_Restore.ipsw
requires apfs-fuse -'
if [ -z "$1" ]; then
echo "$USAGE"
exit 1