Skip to content

Instantly share code, notes, and snippets.

@graymouser
graymouser / hb_all_books_dl.js
Created February 28, 2016 14:09
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
*/
$('a').each(function(i){
if ($.trim($(this).text()) == 'MOBI') {
$('body').append('<iframe id="dl_iframe_'+i+'" style="display:none;">');
document.getElementById('dl_iframe_'+i).src = $(this).data('web');
}
});
@graymouser
graymouser / gist:8771fdcf0d7715929073b4f8b6143b40
Created November 12, 2016 12:47
Setup taskwarrior taskserver on ec2 amazon linux
#A sequence for installing a taskwarrior server on an ec2 amazon linux instance
#hopefully this can save someone a bunch of time
#FIRST go to the ec2 instance management panel,
#edit the security group for the instance and add an inbound rule, custom tcp, port 53589, source anywhere (0.0.0.0/0)
#THEN ssh to the box as ec2-user and run the following
#build taskserver
sudo yum install gcc cmake gnutls-devel gnutls-utils libuuid-devel clang
curl -O http://taskwarrior.org/download/taskd-latest.tar.gz