Skip to content

Instantly share code, notes, and snippets.

"use strict"
const cluster = require('cluster');
const os = require('os');
Array.prototype.forEachParallel = forEachParallel;
module.exports = {
simpleCluster,
}
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
-------------------------------------------------------------- ------------------ --------------
------------------------------------------------------------- --- --------- --- ----------
------------------------- --- ---------------------------- --- --------- -- ---------
------------- --------- ---- --------------------------- --- -------- ---------
------------ --------- --- --------------------------- --- ----------- ---- ---
-------- -- --------- --- ---------------------------- ---------- ---
--------- ---------- ----------------------------- ---------- -----
@MichaelKreil
MichaelKreil / Erstimpfungen für den 2020-12-27.tsv
Last active January 20, 2021 22:25
Zahlen zu den Erstimpfungen für den 2020-12-27 in Abhängigkeit vom Veröffentlichungsdatum. Man sieht die Nachmeldungen.
publication_date number
2020-12-28 21566
2021-01-04 23224
2021-01-05 23224
2021-01-05 23281
2021-01-06 23456
2021-01-07 23465
2021-01-08 23622
2021-01-09 23621
2021-01-11 23621
@MichaelKreil
MichaelKreil / notificato.sh
Last active January 6, 2021 11:36
small bash script that sends you notifications with debug informations when your cronjob scripts fail
#!/bin/bash
result=$(exec $2 2>&1)
status=$?
if [ $status -eq 0 ]; then
exit 0
fi
https://1k-dezentral-remote-clubhaus-friends.maps.at.rc3.world/main.json
https://3d-history.maps.at.rc3.world/main.json
https://3d-printing-assembly.maps.at.rc3.world/main.json
https://402-payment-required.maps.at.rc3.world/main.json
https://aaaaaaaaaaaa.maps.at.rc3.world/main.json
https://af-oio.maps.at.rc3.world/dome/main.json
https://af-oio.maps.at.rc3.world/fiff/main.json
https://af-oio.maps.at.rc3.world/flipdots/main.json
https://af-oio.maps.at.rc3.world/fridaysforfuture/main.json
https://af-oio.maps.at.rc3.world/halle/main.json
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MichaelKreil
MichaelKreil / plz.tsv
Created April 1, 2020 09:25
Alle PLZ in Deutschland
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
01067
01069
01097
01099
01108
01109
01127
01129
01139
01156
@MichaelKreil
MichaelKreil / electionday_accounts.tsv
Created February 6, 2018 14:32
twitter accounts using #electionday at us election day and some other hashtags
We can't make this file beautiful and searchable because it's too large.
account month of day tweets per day
dreamedofdust 9 389
tate_lc 8 192
barbos2 9 150
GupsTop 8 138
GoToArtRave 8 133
ri6p2makdd27 9 133
paparcura 8 119
MercysFight 8 113
PrzDonaldDrumpf 8 111
@MichaelKreil
MichaelKreil / ffmpeg4matelight.sh
Last active April 7, 2024 23:22
using ffmpeg to stream videos, gifs, the webcam or the screen to matelight
# Stream a video
ffmpeg -re -i video.avi -vf "scale=40:ih*40/iw, crop=40:16" -f rawvideo -vcodec rawvideo -sws_flags bilinear -pix_fmt rgb24 - > /dev/udp/matelight.cbrp3.c-base.org/1337
# Loop a gif
ffmpeg -re -ignore_loop 0 -i image.gif -vf "scale=40:ih*40/iw, crop=40:16" -f rawvideo -vcodec rawvideo -sws_flags bilinear -pix_fmt rgb24 - > /dev/udp/matelight.cbrp3.c-base.org/1337
# Stream webcam
# Mac
ffmpeg -re -f avfoundation -r 30 -s 1280x720 -i "0" -vf "scale=40:ih*40/iw, crop=40:16, pp=autolevels:f, eq=1.5" -f rawvideo -vcodec rawvideo -sws_flags bilinear -pix_fmt rgb24 - > /dev/udp/matelight.cbrp3.c-base.org/1337
@MichaelKreil
MichaelKreil / gist:8db395b08bd46388c031
Created May 11, 2015 14:39
Die Geschichte von der Steinsuppe

Die Geschichte von der Steinsuppe

Vor langer Zeit, irgendwo in Osteuropa, gab es in einem Dorf eine große Hungersnot. Die Menschen im Dorf wurden selbstsüchtig, horteten alle Lebensmittel, die sie finden konnten, und versteckten sie sogar vor ihren eigenen Freunden und Nachbarn.

Eines Tages kam ein Wanderer mit einem großen Kessel auf dem Rücken in das Dorf und wollte dort die Nacht verbringen.

"Es gibt nicht einen Happen in der ganzen Provinz zu essen", wurde ihm gesagt. "Du solltest lieber weiterziehen."

"Oh, ich habe alles was ich brauche", sagte er. "Tatsächlich wollte ich eine Steinsuppe kochen und mit euch allen teilen." Er nahm seinen Kessel vom Rücken, füllte ihn mit Wasser, stellte ihn in die Mitte des Marktplatzes und entzündete ein Feuer darunter. Dann, mit einer großen Zeremonie, zog er einen gewöhnlich aussehenden Kieselstein aus einem Samtbeutel und warf ihn in das Wasser.