Skip to content

Instantly share code, notes, and snippets.

@calvinthefreak
calvinthefreak / bash
Created September 17, 2019 17:20
Quick and dirty Discord attachement downloader (written in bash and javascript)
#!/bin/bash
#
#GET YOUR URLS BY RUNNING THIS IN THE CONSOLE OF YOUR BROWSER THEN OPEN LINUX CONSOLE, `nano list.list` --> Paste content of link got in browser and let this script run with bash run.sh
: '
#Paste this to your Browser:
localarray = [];
attachmentscollectortimer = setInterval(attachmentscollector, 100);
@calvinthefreak
calvinthefreak / curl-chunked-downloader.sh
Created October 23, 2019 22:47
Script to chunk download file from server (for what ever reason)
#!/bin/bash
URL='http://file/'
REF='Referer: http://referrer/'
COOKIEHEADER='Cookie: __cfduid=asdf; PHPSESSID=fdsa'
# Get Filesize for Chunking
RA=$(curl -m 3 "$URL" -H 'Connection: keep-alive' -H 'Cache-Control: max-age=0' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3' -H 'Accept-Encoding: identity;q=1, *;q=0' -H 'Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7' -H "$COOKIEHEADER" -H "$REF" -H 'DNT: 1' -H "Range: bytes=0-" --compressed --insecure --output /dev/null --progress-bar 2>&1 | grep milliseconds | awk '{print $13}')
RA=$(($RA+100))
@calvinthefreak
calvinthefreak / live.fc2.com-downloader.bash
Last active January 29, 2022 00:57
Script to download liveshows from live.fc2.com
#!/bin/bash
# Written by https://github.com/calvinthefreak
#
# MIT License
#
# Copyright (c) 2019 Calvin "calvinthefreak"
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal