Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
fname="$1"
cachedir=/tmp/pdfextract
mkdir -p "$cachedir"
mtime="$(stat -c %Y "$1")"
hash=$(echo $fname.$mtime | sha256sum | cut -c1-64)

Karlsruhe Stadt Sperrmüll Kalender Reverese-Suche

  • Wo wird in den nächsten Tagen Sperrmüll abgeholt?

08.01.2018

  • BLEICHENHOFSTRAßE
  • BURGSTRAßE
  • EGELSEESTRAßE
  • GRUNDSTRAßE
# This script was generated by SVP 4 Manager.
# Check https://www.svp-team.com for more details.
import vapoursynth as vs
core = vs.get_core(threads=9)
core.std.LoadPlugin("/opt/svp/plugins/libsvpflow1_vs64.so")
core.std.LoadPlugin("/opt/svp/plugins/libsvpflow2_vs64.so")
clip = video_in
@phiresky
phiresky / place.md
Last active April 2, 2017 16:52
reddit.com/r/place links

link collection

subreddits

  • /r/thebluecorner

...

timelapse, history

@phiresky
phiresky / .gitignore
Last active May 22, 2017 17:26
sha256 mining
latestinfo
sha256test
callgrind*
sha256test.gcda
#!/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 February 21, 2016 02:15
unicode RTL test

is this really an opening brace? ‮"}"

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

<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 April 11, 2024 00:36
Realtime motion interpolating 60fps playback in mpv
# 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 August 29, 2015 14:25
hash collision probability test
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) {