Skip to content

Instantly share code, notes, and snippets.

View DiegoQueiroz's full-sized avatar

Diego Queiroz DiegoQueiroz

  • São Paulo, SP, Brazil
View GitHub Profile
@DiegoQueiroz
DiegoQueiroz / nubank.sh
Created September 25, 2015 04:17
Baixar dados da fatura em aberto do Nubank.com.br (formato JSON)
#!/bin/bash
# Baixa os dados da fatura em aberto do Nubank
# Uso:
# ./nubank.sh <cpf> <senha>
cpf=$1
senha=$2
if [ "$cpf" == "" ]; then
read -p "Digite o CPF: " cpf
@DiegoQueiroz
DiegoQueiroz / getLattes.py
Created May 29, 2015 00:09
Download a single page of CNPq Lattes
# -*- coding: utf-8 -*-
import sys
if sys.version_info.major >= 3:
# usando Python 3.x ou superior
from urllib.request import Request, build_opener, HTTPCookieProcessor
from urllib.parse import urlencode
else:
# usando Python 2.x ou anterior
from urllib2 import Request, build_opener, HTTPCookieProcessor
@DiegoQueiroz
DiegoQueiroz / downloadLattes.py
Created May 4, 2015 00:52
Override HTTP redirect behavior to CNPq Lattes
# -*- coding: utf-8 -*-
import sys, re
if sys.version_info.major == 3:
# usando Python 3
from urllib.request import Request, build_opener, HTTPRedirectHandler, HTTPCookieProcessor
else:
# usando Python 2
from urllib2 import Request, build_opener, HTTPRedirectHandler, HTTPCookieProcessor
@echo off
@cls
set tempfile="%TEMP%\diskscrp.dsk"
echo.
echo === Disk removal tool ===
echo.
echo Select the disk volume number
echo (if the disk has multiple volumes, select any of them)