Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block phiresky

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View data.json
"help": "{n} is replaced with the sheet number, n represents the padding of the number e.g. ({2} => (01,02,03))",
"name": "KIT Inf SS2014",
"uebs": {
"RO": {
"begin": "2014-04-28 13:15",
"every": 7,
"url": "{2}.pdf",
"info": "Keine Pflicht aber Bonuspunkte auf die Klausur"
phiresky / compiled
Last active Oct 22, 2017
export ICS file from KIT Webinscribe. paste into web console
View compiled
var a="BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//\n",b=$("table.piTable>tbody").children;
for(i=0;i<b.length;i++)var c=b[i].children,d=c[0].textContent.trim(),e=c[1].textContent,f=/Tutorium (..) ([-0-9:]+) (.*)/.exec(c[2].textContent.trim()),g=f[1],h=f[2],k=f[3],g=["Mo","Di","Mi","Do","Fr"].indexOf(g),h=/(..):(..)-(..):(..)/.exec(h),l="201410"+(27+g)+"T"+h[1]+h[2]+"00",m="201410"+(27+g)+"T"+h[3]+h[4]+"00",a=a+("BEGIN:VEVENT\nLOCATION:"+k+"\nSUMMARY:Tutorium für "+d.replace(/,/g,"\\,")+"\nDESCRIPTION:"+e+"\nDTSTART:"+l+"\nDTEND:"+m+"\nRRULE:FREQ=WEEKLY;COUNT=16\nEND:VEVENT\n");
var a=a+"END:VCALENDAR\n",n=document.body.appendChild(document.createElement("a"));n.href=URL.createObjectURL(new Blob([a],{type:"text/calendar"}));"Tutorien WS2014 "+$("h3").textContent.match(/.{6}(.*)/)[1]+".ics";;
phiresky /
Last active Jan 1, 2016 — forked from vjt/
Copy data from a Time Machine volume mounted on a Linux box. made compatible with non-english system languages
# Copy data from a Time Machine volume mounted on a Linux box.
# Usage: <source> <target>
# source: the source directory inside a time machine backup
# target: the target directory in which to copy the reconstructed
# directory trees. Created if it does not exists.
You can’t perform that action at this time.