Skip to content

Instantly share code, notes, and snippets.

View barrywoolgar's full-sized avatar

Barry Woolgar barrywoolgar

View GitHub Profile
@barrywoolgar
barrywoolgar / hb_all_books_dl.js
Created September 2, 2016 11:06 — forked from graymouser/hb_all_books_dl.js
Humble bundle book bundles - download all books at once
/*
After purchasing a humble book bundle, go to your download page for that bundle.
Open a console window for the page and paste in the below javascript.
This will download all the books in all the formats available.
*/
$('a').each(function(i){
if (['MOBI', 'PDF', 'EPUB'].indexOf($.trim($(this).text())) >= 0) {
$('body').append('<iframe id="dl_iframe_'+i+'" style="display:none;">');
document.getElementById('dl_iframe_'+i).src = $(this).data('web');
}

Keybase proof

I hereby claim:

  • I am barrywoolgar on github.
  • I am barrywoolgar (https://keybase.io/barrywoolgar) on keybase.
  • I have a public key whose fingerprint is 1E6A 36FE FED4 E3ED 032D AAA4 5C4E B12C 1CF6 A0BC

To claim this, I am signing this object:

#!/usr/bin/env ruby
# Put this file in the root of your Rails project,
# then run it to output the SQL needed to change all
# your tables and columns to the same character set
# and collation.
#
# > ruby character_set_and_collation.rb
DATABASE = ''