Skip to content

Instantly share code, notes, and snippets.

Avatar
😆
Rofl'ing around

calvin_thefreak calvinthefreak

😆
Rofl'ing around
View GitHub Profile
@calvinthefreak
calvinthefreak / live.fc2.com-downloader.bash
Last active Nov 11, 2019
Script to download liveshows from live.fc2.com
View live.fc2.com-downloader.bash
#!/bin/bash
# Written by https://github.com/calvinthefreak
#
# MIT License
#
# Copyright (c) 2019 Calvin "calvinthefreak" Speckhals
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@calvinthefreak
calvinthefreak / curl-chunked-downloader.sh
Created Oct 23, 2019
Script to chunk download file from server (for what ever reason)
View curl-chunked-downloader.sh
#!/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 / bash
Created Sep 17, 2019
Quick and dirty Discord attachement downloader (written in bash and javascript)
View bash
#!/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);