Skip to content

Instantly share code, notes, and snippets.

@Woody2143
Woody2143 / hb_all_books_dl.js
Created September 14, 2017 16:42 — 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
*/
$('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');
}
});
@Woody2143
Woody2143 / some_website
Created June 14, 2016 20:33 — forked from mvickers/some_website
Basic Centos init script for Dancer apps
#!/bin/sh
#
# some_website - this script starts and stops some_website
#
# chkconfig: - 85 15
# description: Some website description
# pidfile: /var/run/plackup.some_website.pid
PID=/var/run/plackup.some_website.pid
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
var socket;
$(function() {
// ws_path should be of the form ws://host/_hippie/ws
var ws_path = "ws:<% request.base.opaque %>_hippie/ws";
@Woody2143
Woody2143 / net
Created March 1, 2013 15:28 — forked from matsuu/net
config_eth0="aaa.bbb.ccc.ddd/23"
routes_eth0="default via aaa.bbb.ccc.1"
dns_servers_eth0="210.224.163.4 210.224.163.3"
iptunnel_6rd="mode sit local aaa.bbb.ccc.ddd ttl 64"
config_6rd="2001:e41:xxxx:xxxx::1/32" # printf "2001:e41:%02x%02x:%02x%02x::1\n" aaa bbb ccc ddd
routes_6rd="::/0 via ::61.211.224.125 dev 6rd"
mtu_6rd="1280"
postup() {