Skip to content

Instantly share code, notes, and snippets.

View cored0wn's full-sized avatar

Chris cored0wn

  • Saarland, Germany
View GitHub Profile
@cored0wn
cored0wn / update_blocklists.sh
Last active January 16, 2025 21:17
Get IPv64 blocklists and add them to iptables
#!/bin/bash
declare -r checksum_file="/tmp/blocklists/checksums.txt"
if [ ! -d /tmp/blocklists ]; then
mkdir /tmp/blocklists
fi
if [ ! -f $checksum_file ]; then
touch $checksum_file
fi
@cored0wn
cored0wn / Dockerfile
Last active February 18, 2022 21:27
phpcs docker vscode
FROM php:cli-alpine
MAINTAINER Christopher Wittor <chris@wittor.IT>
RUN apk --no-cache add git
WORKDIR /tmp
RUN curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar && \
cp /tmp/phpcs.phar /usr/local/bin/phpcs && \