Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
COOKIE_FILE="cookie.jar"
USER=""
PASS=""
AUTHURL="http://uploaded.net/io/login"
FILE=$1
if [ ! -e "$COOKIE_FILE" ]
then
echo "Cookie not found. Authenticating...."
@Detmud
Detmud / update.sh
Last active November 8, 2023 10:17 — forked from RobSeder/update.sh
Default update scripts for Debian-based Linux distributions. See this blog post: http://blog.robseder.com/?p=13292
#!/bin/bash
logger "Update Script: Starting..."
echo '[*] Refreshing repository cache...'
sudo apt-get -qq update -y
echo '[*] Repository cache refreshed.'
echo '[*] Upgrading all existing packages...'
sudo apt-get -qq upgrade -y