Skip to content

Instantly share code, notes, and snippets.

View rephlex's full-sized avatar

Florian Panzer rephlex

View GitHub Profile
@rephlex
rephlex / fio-storage-test.sh
Last active June 22, 2022 18:48
Performance testing Proxmox Storage with fio
#!/bin/bash
dd if=/dev/zero of=./test.10G bs=100M count=100
fio --rw=randrw --name=iops-randrw --bs=4k --direct=1 --filename=./test.10G --numjobs=4 --ioengine=libaio --iodepth=32 --refill_buffers --group_reporting --runtime=60 --time_based
rm -f test.10G
exit 0
@rephlex
rephlex / invoiceninja-unpaid-invoices-to-izettle.php
Created August 23, 2021 13:11
Export unpaid invoices from invoiceninja 4 and upload them to the izettle product catalog
<?php
// database config
$dbhost="localhost";
$dbname="invoiceninja";
$dbuser="invoiceninja";
$dbpass="changeme";
// obtain this by creating an app on https://developer.zettle.com/
// lol
$clientid="changeme-izettle-clientid";
$clientsecret="changeme-izettle-clientsecret";
@rephlex
rephlex / radio_streams.txt
Created September 13, 2018 07:52 — forked from jafstar/radio_streams.txt
Radio Streams
//ABC JAZZ
//mp3: "http://listen.radionomy.com/abc-jazz"
//FRISKY FM
//mp3: "http://scfire-mtc-aa02.stream.aol.com:80/stream/1015"
http://stream2.friskyradio.com:8000/frisky_mp3_hi
http://chill.friskyradio.com/friskychill_mp3_high
//WWOZ
//mp3: "http://wwoz-sc.streamguys.com/wwoz-hi.mp3"
@rephlex
rephlex / phproxy.php
Last active July 11, 2018 13:37
phproxy - a simple and stupid php proxy
<?php
/*
purpose:
file_get_contents some url, and echo it back to the caller.
usage: phproxy.php&url=blah
where blah is a urlencoded string, e.g.: