Skip to content

Instantly share code, notes, and snippets.

modbus:
- name: brink_flair
type: serial
port: /dev/ttyUSB0
baudrate: 19200
bytesize: 8
method: rtu
parity: E
stopbits: 1
sensors:
@icecoldfire
icecoldfire / smartschool.user.js
Last active September 2, 2020 09:50
Improve smartschool.be
// ==UserScript==
// @name Smartschool
// @namespace http://stijngoethals.be/
// @version 0.1
// @description Improve smartschool.be
// @author Stijn Goethals
// @match https://*.smartschool.be/index.php?module=Yearplan&file=teacher&yearplanID=*
// @grant none
// @run-at document-idle
// ==/UserScript==
import urllib2, urllib, itertools
from tqdm import tqdm #The first is the var name the second is the value
for i in tqdm(itertools.combinations('azertyuiopqsdfghjklmwxcvbn123456789',20)):
string = ''.join(i)
print string
mydata=[('domain',string)]
mydata=urllib.urlencode(mydata)
path='' #the url you want to POST to
req=urllib2.Request(path, mydata)