Skip to content

Instantly share code, notes, and snippets.

@help-14
help-14 / rsa.sh
Last active September 15, 2022 02:43
RSA cheatsheet
# generate a private key with the correct length
openssl genrsa -out private-key.pem 2048
# generate corresponding public key
openssl rsa -in private-key.pem -pubout -out public-key.pem
# optional: create a self-signed certificate
openssl req -new -x509 -key private-key.pem -out cert.pem -days 360
# optional: convert pem to pfx
@help-14
help-14 / gist:e12cb6db60a286ceda96e43f8f636a71
Created November 30, 2021 14:28
Clean unused OpenWRT packages
opkg update
opkg remove luci-app-vsftpd --force-removal-of-dependent-packages
opkg remove luci-app-openvpn --force-removal-of-dependent-packages
opkg remove luci-app-passwall --force-removal-of-dependent-packages
opkg remove luci-app-vssr --force-removal-of-dependent-packages
opkg remove luci-app-haproxy-tcp --force-removal-of-dependent-packages
opkg remove luci-app-ssr-plus --force-removal-of-dependent-packages
opkg remove luci-app-adbyby-plus --force-removal-of-dependent-packages
opkg remove luci-app-adblock-plus --force-removal-of-dependent-packages