Skip to content

Instantly share code, notes, and snippets.

@STRML
STRML / bat-download.js
Last active June 20, 2024 00:33
A simple script for downloading all images for a listing on BringATrailer.com
(async function() {
const delay = (ms) => new Promise(r => setTimeout(r, ms));
// Given a url, try to download a high-res version of it
// This prevents us from downloading a downscaled thumbnail
function replaceUrlParam(url) {
return url
.split('?')[0] // get rid of querystring
.replace('-scaled.', '.'); // Remove `-scaled` to attempt to get the full res image
}
@noahbliss
noahbliss / proxprep.sh
Last active May 12, 2024 22:01
Proxmox Setup for General Dev Use
# Swap to free repo
wget -qO- https://gitlab.com/shebang/bashengine/raw/master/root/proxmox/aptfix | bash
apt update
apt upgrade -y
apt dist-upgrade -y
# Remove Nag. (Needs to be done after most upgrades that impact pve-manager)
cat <<EOF > /etc/apt/apt.conf.d/80pvenagfix