Spinning dice into a dark cup!
Forked from Alec Taylor's Pen YATZEE!!!.
A Pen by Captain Anonymous on CodePen.
Spinning dice into a dark cup!
Forked from Alec Taylor's Pen YATZEE!!!.
A Pen by Captain Anonymous on CodePen.
from collections import defaultdict | |
import numpy as np | |
import time | |
# A CSV File with about 35 million lines looking like this: | |
# 578559.000 5917080.000 5.608 | |
# 578560.000 5917080.000 5.639 | |
# 578562.000 5917080.000 -2.629 | |
# ... | |
FILENAME = "../../Sources/HH_bis_28082013_1m_NN_UTM.txt" |
I hereby claim:
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>The Poop Bag Map</title> | |
<style type="text/css"> | |
html { | |
height: 100% | |
} |
#!/bin/bash | |
su postgres -c 'pg_dump db --clean' | gzip --rsyncable --best > /data/export/KM/backup/kmdb/"$(date +"%Y-%m-%d")".gz |
#!/bin/bash | |
# automagically downloads the newest stable mediawiki and it's php dependencies | |
MW_PATH="/export/home/wwwfsr/fachschaft/wiki" # set your mediawiki path here | |
MW_stable_branch_number=$(curl -s "https://www.mediawiki.org/w/api.php?action=expandtemplates&text=\{\{MW%20stable%20branch%20number\}\}&prop=wikitext&formatversion=2&format=json" | python -c 'import json,sys;obj=json.load(sys.stdin);print obj["expandtemplates"]["wikitext"]') | |
MW_stable_release_number=$(curl -s "https://www.mediawiki.org/w/api.php?action=expandtemplates&text=\{\{MW%20stable%20release%20number\}\}&prop=wikitext&formatversion=2&format=json" | python -c 'import json,sys;obj=json.load(sys.stdin);print obj["expandtemplates"]["wikitext"]') |
#!/bin/bash | |
web_service='nginx' | |
config_files=( "/home/tim/le-renew-webroot.ini" "/home/tim/le-renew-webroot-mk.ini" "/home/tim/le-renew-webroot-hackman.ini" "/root/le-renew-webroot.ini" ) | |
le_path='/opt/letsencrypt' | |
exp_limit=30; | |
for config_file in "${config_files[@]}" | |
do |
#!/bin/bash | |
# PURPOSE: Script to check LOCKBASE online services availability | |
LOG_FILE="/var/log/online_services_health.log" | |
EMAIL_ADDRESS="lockbase@koertner-muth.com" | |
HetznerURL="https://lockbase.net/cgi-bin/" | |
BackupURL="https://lockbase.org/cgi-bin/" | |
OnlineCheckURL="https://www.google.com/" | |
WebsiteURL="https://koertner-muth.de/koertner-muth/Navi.cgi" |
#!/bin/bash | |
cp -a $1 /tmp/kmdb.dump | |
sudo su postgres <<EOF | |
cd ~ | |
dropdb db | |
createdb db --owner=kmdb --encoding=UTF8 | |
pg_restore -l /tmp/kmdb.dump | sed '/MATERIALIZED VIEW DATA/d' > restore.lst | |
pg_restore -L restore.lst -d db /tmp/kmdb.dump > /dev/null 2>&1 | |
pg_restore -l /tmp/kmdb.dump | grep 'MATERIALIZED VIEW DATA' > refresh.lst | |
psql -d db -c 'REFRESH MATERIALIZED VIEW unique_lexeme;' |
#!/bin/bash | |
# PURPOSE: Script to check temperatures and report if specified temperatures exceeded | |
# requires lm-sensors | |
LOG_FILE="/var/log/CPUWarning.log" | |
EMAIL_ADDRESS="lockbase@koertner-muth.com" | |
MAX_TEMP=70 | |
warning=false |