This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# usage: pdf-unlock.sh locked.pdf > unlocked | |
# more info: http://superuser.com/questions/367184/pdf-removing-usage-restrictions | |
which ghostscript >/dev/null || { | |
echo "ERROR: install 'ghostscript' package using 'sudo apt-get install ghostscript' command >&2" | |
} | |
gs -sPDFPassword=$PASS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=%stdout% -c .setpdfwrite -f "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
Python Base 36 encode and decode | |
''' | |
__author__ = 'Moises P Sena <[email protected]>' | |
__version__ = 0.1 | |
CHARS = ''.join(map(str, range(10))) + 'abcdefghijklmnopqrstuvwxyz' | |
L_CHARS = len(CHARS) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = []; | |
jQuery("#menu_version .scroll TR").each(function() { | |
var l = $(this); | |
if (!l.attr('data-abbrev')) { | |
return; | |
} | |
data[data.length] = [ | |
l.attr('data-version'), | |
l.attr('data-abbrev'), | |
l.attr('data-meta') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = []; | |
jQuery("#menu_book UL LI A").each(function() { | |
var l = $(this); | |
l.click(); | |
data[data.length] = [ | |
l.text().replace(/(^\s+|\s+$)/g, ''), | |
l.attr('data-book'), | |
$("#chapter_selector LI:last").text().replace(/(^\s+|\s+$)/g, '') | |
] | |
}); |
NewerOlder