Skip to content

Instantly share code, notes, and snippets.

View docker-compose.yml
version: "2"
services:
portainer:
image: portainer/portainer
container_name: portainer
ports:
- 9000:9000
labels:
- "traefik.http.routers.portainer.rule=Host(`portainer.example.com`)"
- "traefik.http.routers.portainer.tls=true"
View query
{
posts {
entries {
artist {
name
}
photographers {
firstName
lastName
fullName
View coronachat.txt
Looking for files in /Users/timbroddin/Downloads/messages 2/inbox/HLNCOMMENTS_A-SR9EtryQ/*.json
Totaal aantal berichten: 16088
-----------------------------------
Aantal berichten
-----------------------------------
┌──────────────────┬────────┬─────────┐
│ Naam │ Aantal │ Percent │
├──────────────────┼────────┼─────────┤
View example.js
const flow = machine => {
machine.register("intro", ({ machine, conv, input }) => {
conv.ask("Dit is een kleine demonstratie. Wat is je naam?");
return {
next: "vraag_naam"
};
});
machine.register("vraag_naam", ({ machine, conv, input }) => {
View queuit.js
setInterval(() => document.title = `${window.queueViewModel.ticket.progress()*100}%`, 1000);
View gist:99cd36f86cdc6b972c4c8ac0ad2d051f
Stap 1: Tampermonkey installeren
Chrome: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=nl
Firefox: https://addons.mozilla.org/nl/firefox/addon/tampermonkey/
Stap 2:
Surf naar hier en installeer: https://openuserjs.org/scripts/timbroddin/VRT_NU_Video_Player_full_screen_livestream
View boomerang.sh
ffmpeg -i "$1" -r 14 -an -vf scale=1080:1920 -filter:v "setpts=0.5*PTS" "$1.fr.mp4"
#exit;
ffmpeg -i "$1.fr.mp4" -r 30 -filter:v "setpts=0.5*PTS" "$1.rs.mp4"
ffmpeg -i "$1.rs.mp4" -filter_complex "[0:v]reverse,fifo[r];[0:v][r] concat=n=2:v=1 [v] " -map "[v]" "$1.b.mp4"
for i in {1..4}; do printf "file '%s'\n" $1.b.mp4 >> list.$1.txt; done
ffmpeg -f concat -i list.$1.txt -c copy $1.boomerang.mp4
rm "$1.fr.mp4"
View bookmarklet.js
/*jshint strict:true, undef:true, noarg:true, immed:true, trailing:true, expr:true */
/*global browser:true, console:true */
(function() {
'use strict';
var on = window.addEventListener
? 'addEventListener'
: 'attachEvent';
var off = window.addEventListener