Skip to content

Instantly share code, notes, and snippets.

Ronivaldo Sampaio ronivaldo

Block or report user

Report or block ronivaldo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ronivaldo /
Created Nov 25, 2019
Backup Duplicate Files
from __future__ import print_function
# tutorial
import os
import sys
from sqlalchemy import Column, ForeignKey, Integer, String, Numeric
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine
ronivaldo /
Created Nov 11, 2019
Dlink NAS 320L Restart
import os
import platform
__author__ = "Ronivaldo Sampaio"
__copyright__ = "Kontus ("
__credits__ = ["Ronivaldo Sampaio"]
__version__ = "1.0.0"
__maintainer__ = "Ronivaldo Sampaio"
__email__ = ""
__status__ = "Production"
Paginas de Login para Testes:
Mais paginas:
Exemplo simples:
ronivaldo /
Created Nov 3, 2019
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
# . | .
# -------------------------
# |
ronivaldo /
Created Oct 20, 2019
import requests
def criar_contas(numero):
cookies = {
headers = {
'Connection': 'keep-alive',
'Cache-Control': 'max-age=0',
ronivaldo / py
Last active Aug 26, 2018
View 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 /
Created Aug 20, 2018 — forked from JamesMGreene/
A comparison of using `git flow` commands versus raw `git` commands.


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 /
Created Apr 15, 2018 — forked from taktran/
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

#-*- coding: UTF-8 -*-
import os, time
import usb.core
import usb.util
import pygtk
import gtk
from sys import exit
You can’t perform that action at this time.