My collection of scripts for Discord.
friend_invitelink.js: Generate a friend invite linkclientside_nitro.js: Spoof the client and enable client side Discord Nitro
| #-------------------------------------------------------- | |
| # Background: WSL UDP port forwarding | |
| #-------------------------------------------------------- | |
| # Microsoft recommends "netsh interface portproxy" for port forwarding, but it does not support UDP for now. | |
| # See https://learn.microsoft.com/en-us/windows/wsl/networking#accessing-a-wsl-2-distribution-from-your-local-area-network-lan. | |
| # For UDP port forwarding, you can use Windows NAT mechanism. | |
| # See https://gist.github.com/the-moog/e7a1b5150ce9017309afbcf91848e622. |
| # If Debian 11 is ran on a LXC container (Proxmox), SSH login and sudo actions can be slow | |
| # Check if in /var/log/auth.log the following messages | |
| Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms) | |
| -> Run systemctl mask systemd-logind | |
| -> Run pam-auth-update (and deselect Register user sessions in the systemd control group hierarchy) |
Update 2021-04-29: This may still work for you if you've got an old TP-Link router, but this is not maintained and doesn't work with newer models. If you've got a newer router, other projects like tpconf_bin_xml will likely work better for you.
TP-Link allows you to backup and restore your router's config file. For some reason, they decided to encrypt these backups so you cannot modify them. I think this is dumb. This script lets you decrypt and re-encrypt your config files so you can modify them as you see fit.
I use this to modify my reserved addresses list because editing them through the web interface is terribly slow and cumbersome.
ruby tp.rb config.bin| { pkgs ? import <nixpkgs> {} }: | |
| with pkgs; | |
| let | |
| # Create a version of GCC without hardening flags as the hardening flags fail with yocot tries to compile gcc itself | |
| wrapCCUnhard = wrapCCWith stdenv.cc.libc ''echo "#HACK Hardening disabled by removing all flags" > $out/nix-support/add-hardening.sh''; | |
| gcc6unhard = lowPrio (wrapCCUnhard gcc6.cc); | |
| in |