Skip to content

Instantly share code, notes, and snippets.

phiresky

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": "http://ti.ira.uka.de/TI-2/Uebungen/blatt{2}.pdf",
"info": "Keine Pflicht aber Bonuspunkte auf die Klausur"
},
View gist:4b595c75615d540f9737
{
"name": "KIT Inf WS2014",
"uebs": {
"DT": {
"begin": "2014-11-03 13:00",
"every": 7,
"url": "http://ti.ira.uka.de/TI-2/Uebungen/blatt{2}.pdf"
}
},
"end": "2015-02-15"
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 SS2015 (4. FSem)",
"uebs": {
"Sicherheit": {
"begin": "2015-04-23 15:45",
"every": [14,21,14],
"url": "https://crypto.iti.kit.edu/fileadmin/User/SicherheitSS15/Uebung/Sicherheit_UE{2}.pdf",
"info": "Keine Abgabe. Besprechung in der Übung. <a href='https://crypto.iti.kit.edu/index.php?id=sic-sose15'>Vorlesungsseite</a>"
},
@phiresky
phiresky / downloadChannel.sh
Last active Aug 29, 2015
Download / Parse MrSuicideSheep Youtube Channel
View downloadChannel.sh
#!/bin/bash
# downloadChannel
#
# downloads a whole youtube channel, including descriptions and thumbnails
# should work on any channel or playlist
# youtube-dl is awesome
# depends: youtube-dl
if [[ ! "$1" ]]; then
echo "No channel specified"
@phiresky
phiresky / gist:f651244ca61568b9a19a
Last active Aug 29, 2015
hash collision probability test
View gist:f651244ca61568b9a19a
second = 1;
year = 365.25 * 24 * 60 * 60 * second;
universe_age = 13.82e9 * year;
hash_length = 256;
hash_speed = 2500 * 1e6 / second; // fastest GPU from https://en.bitcoin.it/wiki/Non-specialized_hardware_comparison
probability_of_asteroid_wiping_out_humans = 1 / (100 * 1e6 * year); // http://www.wired.com/2013/02/asteroid-odds/
// http://preshing.com/20110504/hash-collision-probabilities/
function collision_probability(tries, possibilities) {
View binarySearchStorageCapacity.html
<script>
function log(s) {
document.writeln(s+"<br>");
console.log(s);
}
function generateString(bytes) {
return Array(bytes+1).join("a");
}
@phiresky
phiresky / copy-from-time-machine.sh
Last active Jan 1, 2016 — forked from vjt/copy-from-time-machine.sh
Copy data from a Time Machine volume mounted on a Linux box. made compatible with non-english system languages
View copy-from-time-machine.sh
#!/bin/bash
#
# Copy data from a Time Machine volume mounted on a Linux box.
#
# Usage: copy-from-time-machine.sh <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.
#
@phiresky
phiresky / test.md
Last active Feb 21, 2016
unicode RTL test
View test.md

is this really an opening brace? ‮"}"

‮.erehwemos ti gnitsap dna "god yzal eht revo spmuj xof nworb kciuq ehT" :siht ypoc ot yrT‭

View pulsgraph.py
#!/usr/bin/python3
import matplotlib.pyplot as plt
from datetime import datetime, timedelta
import numpy, csv, sys
from itertools import groupby
from functools import partial
reader = csv.reader(open("data.csv", "r"), delimiter=";")
next(reader, None) # skip header
@phiresky
phiresky / place.md
Last active Apr 2, 2017
reddit.com/r/place links
View place.md

link collection

subreddits

  • /r/thebluecorner

...

timelapse, history

You can’t perform that action at this time.