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
@phiresky
phiresky / place.md
Last active Apr 2, 2017
reddit.com/r/place links
View place.md

link collection

subreddits

  • /r/thebluecorner

...

timelapse, history

@phiresky
phiresky / .gitignore
Last active May 22, 2017
sha256 mining
View .gitignore
latestinfo
sha256test
callgrind*
sha256test.gcda
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 / 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 binarySearchStorageCapacity.html
<script>
function log(s) {
document.writeln(s+"<br>");
console.log(s);
}
function generateString(bytes) {
return Array(bytes+1).join("a");
}
@phiresky
phiresky / motioninterpolation.vpy
Last active Oct 7, 2019
Realtime motion interpolating 60fps playback in mpv
View motioninterpolation.vpy
# vim: set ft=python:
# see the README at https://gist.github.com/phiresky/4bfcfbbd05b3c2ed8645
# source: https://github.com/mpv-player/mpv/issues/2149
# source: https://github.com/mpv-player/mpv/issues/566
# source: https://github.com/haasn/gentoo-conf/blob/nanodesu/home/nand/.mpv/filters/mvtools.vpy
import vapoursynth
core = vapoursynth.get_core()
@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) {
@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"
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>"
},
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"
You can’t perform that action at this time.