Skip to content

Instantly share code, notes, and snippets.

View lucasrcezimbra's full-sized avatar
🐍

Lucas Rangel Cezimbra lucasrcezimbra

🐍
View GitHub Profile
@lucasrcezimbra
lucasrcezimbra / rs_canoas.ipynb
Last active April 20, 2018 17:45
Get Diário Oficial from Canoas/RS
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lucasrcezimbra
lucasrcezimbra / allegro.py
Last active February 28, 2018 12:53
Get Allegro menu from Facebook
import requests
from decouple import config
FACEBOOK_APP_ID = config('FACEBOOK_APP_ID')
FACEBOOK_APP_SECRET = config('FACEBOOK_APP_SECRET')
FACEBOOK_TOKEN = '{}|{}'.format(FACEBOOK_APP_ID, FACEBOOK_APP_SECRET)
FACEBOOK_URL = 'https://graph.facebook.com/v2.12/'
PARAMS = {'access_token': FACEBOOK_TOKEN}
@lucasrcezimbra
lucasrcezimbra / ponto_cwi.css
Last active June 26, 2018 12:55
Firefox Stylus styles
/*
domain = ponto.cwi.com.br
*/
#ctl00_liMonthlyReport {
display: None;
}
#ctl00_liHome, #ctl00_liBalance {
width: 50%;
import os
import random
import tempfile
import requests
TEMPDIR = tempfile.gettempdir()
TEMP_WORDS_FILE = os.path.join(TEMPDIR, 'ista_words')
@lucasrcezimbra
lucasrcezimbra / keybase.md
Created January 5, 2018 10:31
keybase.md

Keybase proof

I hereby claim:

  • I am lrcezimbra on github.
  • I am lrcezimbra (https://keybase.io/lrcezimbra) on keybase.
  • I have a public key ASB15rbFCeB7LsG9L3h2W2MYpoSxO39wLVFWXnpsbRk-tgo

To claim this, I am signing this object:

from __future__ import print_function
import random
import argparse
CONSONANTS = ['f', 'j', 'c', 'l', 'n']
PASSPHRASE = '{}u{}am para as {}o{}i{}as'
@lucasrcezimbra
lucasrcezimbra / fujam.py
Last active August 17, 2017 14:02 — forked from jbiason/fujam.py
from __future__ import print_function
import random
import argparse
CONSONANTS = ['f', 'j', 'c', 'l', 'n']
PASSPHRASE = '{}u{}am para as {}o{}i{}as'
import argparse
import sys
import unittest
from collections import namedtuple
from datetime import datetime, timedelta
def ponto(args):
return _ponto(
args.entry,
working = args.working_hours,
@lucasrcezimbra
lucasrcezimbra / git-author-rewrite.sh
Last active July 18, 2017 12:25
Rewrite name and e-mail on git history
#!/bin/sh
# Rewrite author name and e-mail on git history.
# Rewrites commits not pushed, from origin/HEAD to HEAD (origin/HEAD..HEAD)
# --env-filter https://git-scm.com/docs/git-filter-branch#git-filter-branch---env-filterltcommandgt
# -- origin/HEAD..HEAD https://git-scm.com/docs/git-rev-list#_description
git filter-branch --env-filter '
OLD_EMAIL="MY OLD E-MAIL"
CORRECT_NAME="MY CORRECT NAME"
@lucasrcezimbra
lucasrcezimbra / settings.py
Created June 2, 2017 04:27
Django init settings.py with dj-database-url and python-decouple
"""
Django settings for subscriptions project.
Generated by 'django-admin startproject' using Django 1.10.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/