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
modbus: | |
- name: brink_flair | |
type: serial | |
port: /dev/ttyUSB0 | |
baudrate: 19200 | |
bytesize: 8 | |
method: rtu | |
parity: E | |
stopbits: 1 | |
sensors: |
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
// ==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== |
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 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) |