Skip to content

Instantly share code, notes, and snippets.

View rodorgas's full-sized avatar
🧑‍💻
Typing…

Rodrigo Orem rodorgas

🧑‍💻
Typing…
View GitHub Profile
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
3 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 3
3 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 3
3 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 3
3 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 8 8 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 3
3 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 8 8 8 8 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 3
3 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1
@rodorgas
rodorgas / bmp2template.py
Created April 2, 2017 08:19
Script to generate an template to reddit.com/place
import sys
from PIL import Image
class Template:
COLOR_MAP = {
(255, 255, 255): 0,
(228, 228, 228): 1,
(136, 136, 136): 2,
(34, 34, 34): 3,
# Path to your oh-my-zsh installation.
export ZSH=/Users/rodrigoorem/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Uncomment the following line to use case-sensitive completion.
➜ HAP-NodeJS git:(master) ✗ DEBUG=* node CameraCore.js
HAP-NodeJS starting...
EventedHTTPServer Server listening on port 51062 +0ms
EventedHTTPServer [::ffff:192.168.1.5] New connection from client +2s
EventedHTTPServer [::ffff:192.168.1.5] HTTP server listening on port 49469 +1ms
EventedHTTPServer [::ffff:192.168.1.5] HTTP request: /pair-verify +11ms
HAPServer [EC:22:3D:D3:CE:CE] HAP Request: POST /pair-verify +0ms
HAPServer [EC:22:3D:D3:CE:CE] Pair verify step 1/2 +3ms
EventedHTTPServer [::ffff:192.168.1.5] HTTP Response is finished +8ms
EventedHTTPServer [::ffff:192.168.1.5] HTTP request: /pair-verify +143ms
@rodorgas
rodorgas / gist:6ddc2496eaae59bd4a412e08b98a6d56
Last active March 21, 2017 00:34
Filtro de bloqueio paywall mobile 1Blocker
Estadão
http://.*\.?estadao\.com\.br/paywall
Folha
http://paywall\.folha\.uol\.com\.br/.*
O Globo
https?://ogjs\.infoglobo\.com\.br/.*/js/controla-acesso-aux\.js
https?://cdn\.tinypass\.com/api/tinypass\.min\.js
@rodorgas
rodorgas / gist:208a439ca6ace4df875e2ccac43cc51a
Created November 4, 2016 03:02
Curso de Ética do Clovis de Barros
Originalmente no Veduca, no momento não estão mais sendo "ofertados". Os vídeos estão não-listados no YouTube.
4Z1NUNgeF7M
gkG1zV8IWJc
86xcEGcx4q0
i09GcdtfCsY
Urrf_J_hVco
6DVlzIY2XHA
G6jib5JL1r8
BITD-jEX2eM
#!/usr/local/bin/python3
import requests
import re
CHROME_URL = 'https://chrome.google.com/webstore/detail/burlesco/lpamnanbhgpgkkpmilbifikmikfghlgh'
FIREFOX_URL = 'https://addons.mozilla.org/pt-BR/firefox/addon/burlesco/'
OPERA_URL = 'https://addons.opera.com/pt-br/extensions/details/burlesco/?display=pt'
def count_site(name, url, regex):
2016-09-06 14:56:55 [scrapy] INFO: Scrapy 1.1.2 started (bot: scrapybot)
2016-09-06 14:56:55 [scrapy] INFO: Overridden settings: {}
2016-09-06 14:56:55 [scrapy] INFO: Enabled extensions:
['scrapy.extensions.logstats.LogStats',
'scrapy.extensions.telnet.TelnetConsole',
'scrapy.extensions.corestats.CoreStats']
2016-09-06 14:56:55 [scrapy] INFO: Enabled downloader middlewares:
['scrapy.downloadermiddlewares.httpauth.HttpAuthMiddleware',
'scrapy.downloadermiddlewares.downloadtimeout.DownloadTimeoutMiddleware',
'scrapy.downloadermiddlewares.useragent.UserAgentMiddleware',
# See docs.getsentry.com/on-premise/server/ for full
# instructions
version: '2'
services:
base:
build: .
environment:
# Run `docker-compose run web config generate-secret-key`
# to get the SENTRY_SECRET_KEY value.
# /etc/default/celeryd
CELERYD_NODES="worker1"
CELERY_BIN="/usr/local/proj/venv/bin/celery"
CELERY_APP="app"
CELERYD_CHDIR="/usr/local/proj/"