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
import qrtools, pyscreeze | |
img = pyscreeze.screenshot('tempscreen.png') | |
qr = qrtools.QR() | |
qr.decode('tempscreen.png') | |
print qr.data |
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
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')) |
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
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 |
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
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) |
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
#Ioan Loosley, CC0 | |
import urllib2 | |
f = open('lastip', "r+") | |
pubipsite = urllib2.urlopen("http://ipecho.net/plain") | |
pubip = pubipsite.read() | |
lastip = f.read() | |
if pubip != lastip: | |
#put code here | |
print "Ip changed to", pubip | |
f.seek(0) |
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
<-- mtcos (~mtcos@protectedhost-98E6BC0E.residential.rdsnet.ro) has quit (Quit: Konversation terminated!) | |
<-- ceed^ (~christian@protectedhost-CA708B19.hsd1.ma.comcast.net) has quit (Operation timed out) | |
<-- louis_ (~louis@protectedhost-68F8034C.adsl.cybercity.dk) has quit (Operation timed out) | |
--> keyboard-k (~keyboard@283C4975.91DABE98.A8837F20.IP) has joined #jupiterbroadcasting | |
--> ceed^ (~christian@protectedhost-CA708B19.hsd1.ma.comcast.net) has joined #jupiterbroadcasting | |
<-- kookieless (~kookieles@protectedhost-39242DCB.chmtny.dsl.dynamic.tds.net) has quit (Ping timeout: 964 seconds) | |
--> amahoola (~admin@protectedhost-78BEE1DB.cm-6-7d.dynamic.ziggo.nl) has joined #jupiterbroadcasting | |
--> louis_ (~louis@protectedhost-68F8034C.adsl.cybercity.dk) has joined #jupiterbroadcasting | |
<-- amahoola (~admin@protectedhost-78BEE1DB.cm-6-7d.dynamic.ziggo.nl) has left #jupiterbroadcasting | |
--> CTtechguy (~CTtechguy@protectedhost-4DC41321.hfc.comcastbusiness.net) has joined #jupiterbroadcasting |
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 python3 | |
import socket | |
import string | |
from lxml import html | |
import requests | |
import json | |
import urllib.request | |
from html import unescape | |
import re |
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
def getsunrise(lat="", lng="", formatted=1): | |
if lat=="" or lng == "": | |
print "Developer failed to Get lat and long to libary, atempting libary devloper method, uses the internet" | |
api=urllib2.urlopen("http://freegeoip.net/json/") | |
lat=str(json.loads(api.read().decode("UTF-8"))["latitude"]) | |
print lat | |
lng=str(json.loads(api.read().decode("UTF-8"))["longitude"]) | |
sunapi=urllib2.urlopen("http://api.sunrise-sunset.org/json?lat=" + lat + "&lng=" + lng + "&formatted=" + formatted) | |
return json.loads(sunapi.read().decode("UTF-8"))['results']['sunrise'] |
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
IEEE 802.11abgn ESSID:"***" | |
Mode:Managed Frequency:5.18 GHz Access Point: *** | |
Bit Rate=150 Mb/s Tx-Power=22 dBm | |
Retry short limit:7 RTS thr:off Fragment thr:off | |
Power Management:off | |
Link Quality=50/70 Signal level=-60 dBm | |
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 | |
Tx excessive retries:0 Invalid misc:166 Missed beacon:0 |
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
* | |
/\ | |
/~~\ | |
/~~~~\ | |
/~~~~~~\ | |
/~~~~~~~~\ | |
/~~~~~~~~~~\ | |
/~~~~~~~~~~~~\ | |
/~~~~~~~~~~~~~~\ | |
¯¯¯¯¯¯|_|¯¯¯¯¯¯¯ |
OlderNewer