Skip to content

Instantly share code, notes, and snippets.

@pzillmann
pzillmann / history-clean.go
Created August 20, 2018 22:30
Remove rspamd history values from redis database after x hours
package main
import (
"encoding/json"
"os"
"time"
"github.com/mediocregopher/radix.v2/redis"
)
@pzillmann
pzillmann / dtube-sprite.sh
Created February 13, 2018 19:42
d.tube Sprite Generation Script. License: CC0 / Public Domain
#!/bin/bash
if [ $# -ne 2 ]; then
echo
echo call: $0 input_file.mp4 output_file.jpg
exit 1
fi
if [ "$(command -v ffmpeg)" = "" ]; then
echo