Skip to content

Instantly share code, notes, and snippets.

@Slamdunk
Slamdunk / stevenblackhosts
Last active December 22, 2023 08:15
Debian `hosts` updater for DNS block
#!/bin/sh
set -e
tmp="$(mktemp)"
file="/etc/hosts"
wget --quiet -O "${tmp}" https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts
if [ ! -s "$file" ]; then
@Slamdunk
Slamdunk / MezzioUriPage.php
Last active May 19, 2021 11:24
mezzio-laminasnavigation
<?php
declare(strict_types=1);
namespace My\Navigation;
use Laminas\Navigation\Page\AbstractPage;
use Mezzio\Helper\UrlHelper;
final class MezzioUriPage extends AbstractPage
@Slamdunk
Slamdunk / sysrescd-6.1.5-ZFS.patch
Last active June 11, 2020 08:09
Compile SystemRescueCD with ZFS
diff --git a/packages b/packages
index 0988933..6c6268e 100644
--- a/packages
+++ b/packages
@@ -175,3 +175,4 @@ zerofree
zile
zip
zsh
+archzfs-linux-lts
diff --git a/pacman.conf b/pacman.conf