I hereby claim:
- I am hjulio on github.
- I am hjulio (https://keybase.io/hjulio) on keybase.
- I have a public key ASBsNOy9ZTLnP0y83gw3OsGMa0R05rfQ6GpbJVLfQ4F-Ggo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#@async | |
from threading import Thread | |
def async(f): | |
def wrapper(*args, **kwargs): | |
thr = Thread(target=f, args=args, kwargs=kwargs) | |
thr.start() | |
return wrapper |
import tweepy, os | |
def login(): | |
#Tokens | |
CONSUMER_TOKEN = '' | |
CONSUMER_SECRET = '' | |
auth = tweepy.OAuthHandler(CONSUMER_TOKEN, CONSUMER_SECRET) | |
ACC_TOKEN_SV = os.path.expanduser('./._twitter_keys') |
import os | |
import sys | |
import io | |
import socket | |
import time | |
import struct | |
TIMEOUT = 10 | |
PORT = "5900" |
def random_password(length=8): | |
chars = string.ascii_uppercase + string.digits + string.ascii_lowercase | |
password = '' | |
for i in range(length): | |
password += chars[ord(os.urandom(1)) % len(chars)] | |
return password |