Skip to content

Instantly share code, notes, and snippets.

View mrbig00's full-sized avatar

Szántó Zoltán mrbig00

View GitHub Profile
@mrbig00
mrbig00 / PHP-array.groovy
Last active November 26, 2020 14:21
Enhanced PHP array export
/*
* Available context bindings:
* COLUMNS List<DataColumn>
* ROWS Iterable<DataRow>
* OUT { append() }
* FORMATTER { format(row, col); formatValue(Object, col) }
* TRANSPOSED Boolean
* plus ALL_COLUMNS, TABLE, DIALECT
*
* where:
@mrbig00
mrbig00 / run.sh
Created November 20, 2018 20:54
Dockerized media center pirate kit
docker create --name sonarr
-p 8989:8989
-e PUID=1000
-e PGID=1000
-e TZ=Europe/Bucharest
-v /etc/localtime:/etc/localtime:ro
-v /home/mrbig/docker-containers/configurations/sonarr:/config
-v /home/mrbig/docker-containers/volumes/sonarr/tv:/tv
-v /home/mrbig/docker-containers/volumes/deluge/downloads:/downloads linuxserver/sonarr
@mrbig00
mrbig00 / ampify.php
Created April 17, 2018 11:00 — forked from adactio/ampify.php
Make a chunk of markup AMP-ready
<?php
# Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
# http://creativecommons.org/publicdomain/zero/1.0/
function ampify($html='') {
# Replace img, audio, and video elements with amp custom elements
$html = str_ireplace(
['<img','<video','/video>','<audio','/audio>'],