View chaintest.py
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 requests | |
# via https://whatsmychaincert.com/?webportal.stromnetz-graz.at | |
# "Generate the Correct Chain" + "Include Root Certificate" | |
# --> https://whatsmychaincert.com/generate?include_leaf=1&host=webportal.stromnetz-graz.at&submit_btn=Generate+Chain&include_root=1 | |
CUSTOMSTORE='/tmp/webportal.stromnetz-graz.at.chained+root.crt' | |
print('without chain:') | |
try: | |
requests.get('https://webportal.stromnetz-graz.at/login') |
View generate.js
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
// using https://github.com/transmute-industries/did-key.js | |
// via https://www.npmjs.com/package/@transmute/did-key-ed25519 | |
const main = async function() { | |
const k = await require('@transmute/did-key-ed25519').Ed25519KeyPair.generate({ | |
secureRandom: () => { | |
return Buffer.from( | |
require('crypto').randomBytes(32), | |
'hex' |
View pinboard.py
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 json | |
import sys | |
import requests | |
import codecs | |
from requests.utils import get_netrc_auth | |
TMP_FILE = '/tmp/pinboard.json' # May not exist in all platforms | |
default_params = {'format': 'json'} |
View dir2org.sh
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
#!/bin/bash | |
# if [[ -d $PASSED ]]; then | |
# echo "$PASSED is a directory. Let's convert it." | |
# elif [[ -f $PASSED ]]; then | |
# echo "$PASSED is a file. Try md2org instead?" | |
# exit 2 | |
# else | |
# echo "$PASSED is not valid?" | |
# exit 1 |
View demo.php
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
<?php declare(strict_types=1); | |
$json = '{"a":1,"b":2,"c":3,"d":4,"e":5}'; | |
$j = json_decode($json); | |
var_dump($j); | |
var_dump($j->a == NULL); |
View courses.csv
We can't make this file beautiful and searchable because it's too large.
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
id,title,other_uni | |
BEA.01001PH,"Ästhetik, Kunst und visuelle Kultur (STEOP)",PH_Stmk | |
BEA.02001PI,Introduction to the subject specific professional field of ARTS Education,PPH_Graz | |
BEA.03001PH,Grundlagen bildnerischen Gestaltens I,PH_Stmk | |
BEA.04001PH,Wahrnehmungspsychologie,PH_Stmk | |
BEA.05001PH,Grundlagen der Fachdidaktik,PH_Stmk | |
BEA.06001PH,Grundlagen bildnerischen Gestaltens II,PH_Stmk | |
BEA.07115UB,Introduction to Iconography,Uni Graz | |
BEB.01001PH,Grafik I,PH_Stmk | |
BEB.02001PI,Painting I,PPH_Graz |
View studies.csv
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
study programme number | study programme name | study programme type | |
---|---|---|---|
221 | Geodesy | Bachelor programme | |
211 | Information and Computer Engineering | Bachelor programme | |
243 | Architecture | Bachelor programme | |
253 | Biomedical Engineering | Bachelor programme | |
273 | Chemical and Process Engineering | Bachelor programme | |
662 | Chemistry | Bachelor programme | |
264 | Civil Engineering Sciences and Construction Management | Bachelor programme | |
521 | Computer Science | Bachelor programme | |
235 | Electrical Engineering | Bachelor programme |
View u2f_demo.py
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
from u2flib_host import u2f, exc | |
from u2flib_host.utils import websafe_encode, websafe_decode | |
from u2flib_host.register import register | |
from u2flib_host.authenticate import authenticate | |
import json | |
import struct | |
import base64 | |
# Using https://github.com/Yubico/python-u2flib-host | |
# See also: https://webauthn.guide/#webauthn-api |
View export.sh
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
#!/bin/bash | |
# Get desktop-app (which includes CLI) from http://get.diagrams.net | |
NUM_PAGES=4 | |
DRAWIO_FILE="cdn-setup1" | |
#set -o xtrace | |
for ((page=0; page<NUM_PAGES; page++)) |
NewerOlder