Skip to content

Instantly share code, notes, and snippets.

View benderni's full-sized avatar

Benny Van der Stee benderni

View GitHub Profile
#!/bin/bash
# https://github.com/pi-hole/docker-pi-hole/blob/master/README.md
PIHOLE_BASE="${PIHOLE_BASE:-$(pwd)}"
[[ -d "$PIHOLE_BASE" ]] || mkdir -p "$PIHOLE_BASE" || { echo "Couldn't create storage directory: $PIHOLE_BASE"; exit 1; }
# Note: FTLCONF_LOCAL_IPV4 should be replaced with your external ip.
docker run -d \
--name pihole \
@benderni
benderni / VersionAssetManager.php
Last active November 18, 2022 00:24
This version of the asset manager is compatible with PHP 8 see original version here (https://gist.github.com/jasonhancock/5073938). The ternary operations have been patched to work with PHP 8
<?php
/**
* CAssetManager class file.
*
* @author Jason Hancock <jsnbyh@gmail.com>
* @copyright Copyright &copy; 2013 Jason Hancock
* @license http://www.yiiframework.com/license/
*/