Skip to content

Instantly share code, notes, and snippets.

@Zorg64
Zorg64 / download_gofile.sh
Last active April 18, 2024 13:28 — forked from shawnli87/download_gofile.sh
Bash script to download files from gofile.io
#!/bin/bash
# Prompts the user for a URL if not provided as a command-line argument.
# Extracts the ID from the given URL to use in API requests.
function promptForURL() {
local url="$1"
until [ -n "$url" ]; do
read -p "URL: " url
done
id=$(sed 's|.*gofile.io/d/||g' <<< "$url")
@Zorg64
Zorg64 / KDE_XRDP_WSL.md
Last active January 10, 2024 22:43
Windows RDP to WSL (Debian/Ubuntu) using KDE + XRDP

Enable systemd

echo -e "[boot]\nsystemd=true" | sudo tee -a /etc/wsl.conf

Restart wsl

exit
wsl --shutdown
wsl