I hereby claim:
- I am moisespsena on github.
- I am moisespsena (https://keybase.io/moisespsena) on keybase.
- I have a public key ASAdvzvnonT0YEhBtxZSk8iHH2UlWPPZT_X0Oqd7Va0MzQo
To claim this, I am signing this object:
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, '') | |
] | |
}); |
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') |
#!/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) |
#!/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 "$@" |
#!/usr/bin/env python | |
''' | |
SimpleHttpClient: Python Simple HTTP Client | |
Author: Moises P. Sena <moisespsena AT gmail.com> | |
CONNECT AND CLOSE: | |
>>> host, port = 'localhost', 80 | |
>>> c = SimpleHttpClient((host, port), host) |
#!/bin/bash | |
SD=$(dirname $(realpath "$0")) || exit 1 | |
[ `arch` = 'x86_64' ] && url='https://julialang.s3.amazonaws.com/bin/linux/x64/0.4/julia-0.4.2-linux-x86_64.tar.gz' \ | |
|| url='https://julialang.s3.amazonaws.com/bin/linux/x86/0.4/julia-0.4.2-linux-i686.tar.gz' | |
echo $url | |
tmpd="$SD/tmp" |
#!/bin/bash | |
# | |
# For partition only, set PARTITION_ONLY=1 enviroment variable | |
# | |
VERSION=1 | |
PARTITION_ONLY=$PARTITION_ONLY | |
function _continue_or_cancel() { | |
echo digite \'YeS\' para CONTINUAR, caso contrario sera cancelado: |
#!/bin/bash | |
if [ "$1" != '' ]; then | |
cd "$1" || exit $? | |
fi | |
find `pwd` -name .git -type d | while read l; do | |
perl -i -pe 's/https:\/\/github.com\/([^\/]+)\/(.+?)(\.git)?$/git\@github.com:\1\/\2.git/' "$l/config" && dirname "$l" | |
done |
#!/bin/bash | |
# Show GIT repositories state recursively | |
if [ "$1" != '' ]; then | |
cd "$1" || exit $? | |
fi | |
find `pwd` -name .git -type d | while read l; do | |
p=`dirname "$l"` | |
cd "$p" | |
sc=0 |
I hereby claim:
To claim this, I am signing this object: