Skip to content

Instantly share code, notes, and snippets.

View miawgogo's full-sized avatar
🐧
Processing Gender, Please Wait

Ceri Loosley miawgogo

🐧
Processing Gender, Please Wait
View GitHub Profile
@miawgogo
miawgogo / gist:6d5d2838b732085d8680
Created August 26, 2015 11:10
Python qrcode example
import qrtools, pyscreeze
img = pyscreeze.screenshot('tempscreen.png')
qr = qrtools.QR()
qr.decode('tempscreen.png')
print qr.data
@miawgogo
miawgogo / uptime.py
Created July 10, 2015 14:15
python uptime log
import subprocess, datetime
def writestatus(status):
f=open("uptime", 'a')
if status == True:
string="[" + str(datetime.date.today()) + " " + str(datetime.datetime.now().time()) + "] Site google.co.uk is up \n"
f.write(string)
print string
elif status == False:
string="[" + str(datetime.date.today()) + " " + str(datetime.datetime.now().time()) + "] Site google.co.uk is down \n"
f.write(string)
@miawgogo
miawgogo / gist:61ce47578b80bb794699
Created July 7, 2015 18:59
what i mannaged to do with a lack of sleep
import csv,getpass
from Crypto.Cipher import AES
global ecsv
global uecsv
global passdict
global pwddb
global obj
pwddb=getpass("Enter Database Password:")
IV = 16 * '\x00' #this is a temporey IV until i can work out a good way to generate one
@miawgogo
miawgogo / Password.py
Last active August 29, 2015 14:09
Faux password guessor
import time, sys, os
# this function was taken from stack overflow
def getTerminalSize():
import os
env = os.environ
def ioctl_GWINSZ(fd):
try:
import fcntl, termios, struct, os
cr = struct.unpack('hh', fcntl.ioctl(fd, termios.TIOCGWINSZ,
'1234'))
@miawgogo
miawgogo / README.md
Last active April 22, 2021 15:10 — forked from roelentless/README.md
Countdown. REVISED EDITION!!!!

Countdown. REVISED EDITION!!!!

This is a fork of ruleb's count down that rended one of the else ifs unreachable in his code. Even though he was notified by menny people he never fixed his code so i took it on to... fix 1 line of code. This Fork may expand if i have the time to re-learn coffie and see if any outher code is broken.

The rest of this readme and the html code and scss is still the orginal by ruleb.

Description

Simple Dashing widget to countdown until a certain moment. Flashes the widget when finished.