This file contains hidden or 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/python | |
from __future__ import print_function | |
import base64 | |
import commands | |
import json | |
import sys | |
import uuid | |
import xmltodict |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Generátor QR kódu pro inicializaci HOTP pro datové schránky</title> | |
<meta name="copyright" content="Bedřich Košata, Laboratoře CZ.NIC" /> | |
<meta name="original-source" content="http://blog.nic.cz/2011/10/10/kouzlo-standardizovaneho-reseni/" /> | |
</head> | |
<body> | |
<h1>Generátor QR kódu pro inicializaci HOTP pro datové schránky</h1> |
This file contains hidden or 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
Quickly matches strings which might be URLs | |
matches all valid IRI (URL) with slash (e.g. schema:/path but not | |
schema:path) because matching schema:path would cause to many false | |
positives. | |
Not all matched strings are valid URIs. | |
It also matches these strings: | |
www.example.com or ftp.example.com or example.com/q | |
they require to manually add prefix http:// or ftp:// | |