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
MAILTO=vaccin@no.net | |
# check elke 5 minuten. Er is output als er vaccins zijn. Die output wordt gemaild door cron | |
*/5 * * * * /home/tom/Miniconda3/env/py38/bin/python poll_vaccin.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
<modelleertaal> | |
<startwaarden> | |
t = 0 | |
dt = 0,001 | |
g = 9,81 | |
vy = 25 | |
y = 0 | |
x = 0 | |
vx = 1 | |
</startwaarden> |
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
# For more information on configuration, see: | |
# * Official English Documentation: http://nginx.org/en/docs/ | |
# * Official Russian Documentation: http://nginx.org/ru/docs/ | |
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log; | |
pid /run/nginx.pid; | |
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic. |
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
sudo mysql | |
show databases; | |
use wp_hisparc; | |
Info checken: | |
show tables; | |
select * from his_usermeta where user_id=487; | |
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
"""Query wordpress database metadata for username""" | |
import argparse | |
from collections import namedtuple, defaultdict | |
import sqlalchemy as sa | |
import sqlalchemy.orm as orm | |
from config import DB_USER, DB_PASSWORD |
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
"""Query wordpress database metadata for username""" | |
import argparse | |
from collections import namedtuple, defaultdict | |
import sqlalchemy as sa | |
import sqlalchemy.orm as orm | |
from config import DB_USER, DB_PASSWORD |
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
# API docs: https://nh-production-api.jove.surfsara.nl/usermgmtapi/#/ | |
import requests | |
url = 'https://nh-production-api.jove.surfsara.nl/usermgmtapi/v1/jaas-ldap-rest/user/%s' | |
headers = {'X-API-Application': 'jaas-ldap-api', | |
'X-API-Key': 'geheim!!', | |
'Content-Type': 'application/json;charset=utf-8' | |
} | |
# call get service with headers and params |
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 collections import defaultdict | |
docent_van_cluster = {} | |
with open("docenten") as f: | |
for line in f: | |
cluster, afkorting = line.rstrip().split(";") | |
docent_van_cluster[cluster] = afkorting | |
leerlingen = defaultdict(list) |
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 datetime | |
import random | |
import time | |
import numpy as np | |
import pysparc.events | |
import pysparc.storage | |
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 datetime | |
import random | |
import time | |
import numpy as np | |
import pysparc.events | |
import pysparc.storage | |
NewerOlder