Skip to content

Instantly share code, notes, and snippets.

View mlueckl's full-sized avatar
👾
Energetic!

Michael Lueckl mlueckl

👾
Energetic!
View GitHub Profile
$fileName = 'Billing-Summary.csv';
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header('Content-Description: File Transfer');
header("Content-type: text/csv");
header("Content-Disposition: attachment; filename={$fileName}");
header("Expires: 0");
header("Pragma: public");
$fh = @fopen( 'php://output', 'w' );
@mlueckl
mlueckl / hb_download_all_ebooks.js
Last active April 22, 2020 03:25
HumbleBundle download all EBooks
var pool = document.getElementsByClassName('subproducts-holder');
pool = pool[0].children;
var i = 0;
var download = setInterval(function(){
if(i < pool.length){
pool[i].click();
var h = document.getElementsByClassName('js-button-holder');