Skip to content

Instantly share code, notes, and snippets.

@phiresky
phiresky / .gitignore
Last active May 22, 2017 17:26
sha256 mining
latestinfo
sha256test
callgrind*
sha256test.gcda
# 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 / compiled
Last active October 22, 2017 10:21
export ICS file from KIT Webinscribe. paste into web console
var a="BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//phiresky.de//tools\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"}));n.download="Tutorien WS2014 "+$("h3").textContent.match(/.{6}(.*)/)[1]+".ics";n.click();

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
@phiresky
phiresky / calc.js
Created October 29, 2018 19:59
bitcoin fees vs block reward 2017
fees = await fetch("https://api.blockchain.info/charts/transaction-fees-usd?format=json&timespan=2years").then(x => x.json())
year = 2018
filter = x => new Date(1000*x.x) > Date.UTC(year) && new Date(1000*x.x) < Date.UTC(year + 1)
totalFees = fees.values.filter(filter).reduce((a,b) => a+b.y, 0)
rewards = await fetch("https://api.blockchain.info/charts/miners-revenue?format=json&timespan=2years").then(x => x.json())
node_modules

Nebenfach genetik / biologie am kit

Vorlesungen

Biologie als Ergänzungsfach besteht aus 3 Vorlesungen, die jeweils aus dem ersten und dritten Semester den Bio-Bachelors sind. Alle zusammen geben 9 LP. Die Themen sind meiner Meinung nach sehr spannend.

Grundlagen der Biologie: oft als "BA-01" bezeichnet, was aber nur der Modulname im Bachelorstudium ist. Wir müssen von diesem Modul nur diese eine Vorlesung besuchen. Aufgebaut ist diese aus 3 Teilen - 50% Zellbiologie, 25% Genetik, 25% Evolutionsbiologie. Für die Vorlesung fand ich Wissen aus der Schule extrem hilfreich, da man dadurch schon einiges an nötigem Grundwissen hat, auf dem sehr viel aufgebaut und vertieft wird. Ich selbst hatte "nur" Bio zweistündig in der Oberstufe, hat trotzdem viel geholfen.

Molekularbiologie: zusammen mit Genetik im "BA-04"-Modul. Hier geht es um die Analyse, Prozessierung und Modifikation von DNA und RNA. Dabei kennt man aus den Medien Begriffe wie CRISPR, PCR und Gentechnik im Allgemeinen. Da man h

@phiresky
phiresky / log.js
Last active March 29, 2019 22:35
ws
require('socket.io-client')
.connect('ws://tracker.archiveteam.org:8080/googleplus-log')
.on('log_message', data => console.log(data))
@phiresky
phiresky / .gitignore
Last active March 30, 2019 10:50
fusl script
/node_modules
/charts.json
/stats.json
@phiresky
phiresky / README.md
Last active May 29, 2019 21:25
qdirstat server script

Use this to run qdirstat for a server on which it is not installed:

ssh root@server 'curl -sL https://git.io/fj42l | perl -- - / -' | qdirstat -c /dev/stdin

Yes, the arguments to perl are perl -- - dir_to_scan -. Beautiful, isn't it?