Skip to content

Instantly share code, notes, and snippets.

@ronivaldo
ronivaldo / readscale.py
Created September 26, 2017 23:59 — forked from jacksenechal/readscale.py
Python script to read a USB scale in the Linux
#!/usr/bin/python
import os, time
import usb.core
import usb.util
import pygtk
pygtk.require('2.0')
import gtk
from sys import exit
import math
@ronivaldo
ronivaldo / comoSerChatoNowhatsapp.js
Created October 19, 2017 01:00 — forked from callmeloureiro/comoSerChatoNoWhatsapp.js
Como fazer alguém te responder no whatsapp
/*
Hoje iremos MUDAR a vida da pessoa que não te responde no whatsappp...
Que tal enviar mensagens pra ela até obter uma resposta?!
Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê!
Para utilizar:
- Abra o web.whatsapp.com;
- Selecione a conversa que você quer;
- Abra o console e cole o código que está no gist;
@ronivaldo
ronivaldo / comoSerChatoNoFacebook.js
Created October 20, 2017 15:08 — forked from callmeloureiro/comoSerChatoNoFacebook.js
Como fazer alguém te responder no facebook...
/*
Hoje iremos MUDAR a vida da pessoa que não te responde no Facebook...
Que tal enviar mensagens pra ela até obter uma resposta?!
Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê!
Para utilizar:
- Abra o messenger.com;
- Selecione a conversa que você quer;
- Abra o console e cole o código que está no gist;
#!/usr/bin/python
#-*- coding: UTF-8 -*-
import os, time
import usb.core
import usb.util
import pygtk
pygtk.require('2.0')
import gtk
from sys import exit
@ronivaldo
ronivaldo / rpi-led-notes.md
Created April 15, 2018 04:58 — forked from taktran/rpi-led-notes.md
Controlling Raspberry Pi 2 LEDs

Commands for controlling the Raspberry Pi 2 LEDs.

See rpi-leds for a node module that does this.

Power (PWR) LED

  • OK (ACT) LED = led0
  • Power (PWR) LED = led1

Allow access

@ronivaldo
ronivaldo / gitflow-breakdown.md
Created August 20, 2018 23:17 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@ronivaldo
ronivaldo / py
Last active August 26, 2018 02:58
phishing_breaker.py
from __future__ import print_function
from random import randint
import requests
import string
import random
import time
import sys
import argparse
__author__ = 'Ronivaldo <ronivaldo@gmail.com>'
@ronivaldo
ronivaldo / create_users.py
Created October 20, 2019 01:17
create_users_and_valid_tokens
import requests
def criar_contas(numero):
cookies = {
}
headers = {
'Connection': 'keep-alive',
'Cache-Control': 'max-age=0',
@ronivaldo
ronivaldo / hanna_moves.py
Created November 3, 2019 20:49
Hanna moves in a lattice
# Hanna moves in a lattice where every point can be represented by a pair of integers.
# She moves from point A to point B and then takes a turn 90 degrees rightand starts
# moving till she reaches the first point on the lattice. Find what's the
# point she would reach?
# A' . |
# . |
# . | . . . A
# . | .
# -------------------------
# |
"""
Paginas de Login para Testes:
http://testing-ground.scraping.pro/login
Mais paginas:
http://testing-ground.scraping.pro/
Exemplo simples:
https://selenium.dev/selenium/docs/api/py/