This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding=utf-8 | |
import apt | |
import apt_pkg | |
from time import strftime | |
import os | |
import subprocess | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# taken from: http://stackoverflow.com/questions/7039114/waiting-animation-in-command-prompt-python | |
import threading | |
import time | |
class CursorAnimation(threading.Thread): | |
def __init__(self): | |
self.flag = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from string import digits, ascii_letters | |
from random import choice | |
from sys import argv | |
def generator(length): | |
chac = digits + ascii_letters | |
pwd = list() | |
for p in range(length): | |
pwd.append(choice(chac)) | |
print("".join(pwd)) |