This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# wget https://raw.githubusercontent.com/piwik/referrer-spam-blacklist/master/spammers.txt -O spammers.txt | |
{ | |
echo -ne 'RewriteEngine On\n\n' && \ | |
echo '# denied referers' && \ | |
cat spammers.txt | head -n -1 | sed 's/\./\\\./g' | sed 's/^\(.*\)$/RewriteCond "%{HTTP_REFERER}" "\1$" [NC,OR]/' && \ | |
cat spammers.txt | tail -n 1 | sed 's/\./\\\./g' | sed 's/^\(.*\)$/RewriteCond "%{HTTP_REFERER}" "\1$" [NC]/' && \ | |
echo 'RewriteRule .* - [F]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/sbin/nft -f | |
flush ruleset | |
table inet filter { | |
chain input { | |
type filter hook input priority 0; policy drop; | |
iif lo accept comment "Accept any localhost traffic" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import logging | |
import sys | |
import vobject | |
import requests | |
from requests.auth import HTTPBasicAuth | |
from requests.packages.urllib3.poolmanager import PoolManager | |
# https://stackoverflow.com/questions/26479039/python-requests-direct-pem-pinning-with-self-signed-cert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Price Per Square Meter | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Display price per square meter | |
// @author You | |
// @match https://www.ebay-kleinanzeigen.de/s-wohnung-kaufen/* | |
// @match https://www.ebay-kleinanzeigen.de/s-auf-zeit-wg/* | |
// @match https://www.ebay-kleinanzeigen.de/s-immobilien/* | |
// @match https://www.ebay-kleinanzeigen.de/s-wohnung-mieten/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Unblock Instagram scroll lock | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @author You | |
// @match https://www.instagram.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.16-alpine as builder-linux | |
RUN apk add \ | |
vips-dev \ | |
gcc \ | |
musl-dev | |
RUN mkdir /go/pkg \ | |
&& mkdir /tmp/go-cache \ | |
&& chmod ugo=rwX /go/pkg /tmp/go-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.6-slim | |
RUN apt-get update && apt-get install --no-install-recommends -y \ | |
libgl1 \ | |
libglib2.0-0 \ | |
curl | |
RUN extractor='extractor_2.h5' \ | |
&& extractor_sha256='cdda15f239331b9535d80a94b4d75889ccb3b61d7b030c921bd2bfd7862b0adc' \ | |
&& extractor_path='/usr/local/lib/python3.6/site-packages/fawkes/model' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Duplicate Kleinanzeigen Post | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Bietet eine "Anzeige duplizieren" Funktion beim Bearbeiten einer vorhandenen Anzeige in eBay Kleinanzeigen. | |
// @license CC0 | |
// @match https://www.ebay-kleinanzeigen.de/p-anzeige-bearbeiten.html?adId=* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euf -o pipefail | |
recipients=( | |
'root' | |
) | |
journal_filter=( | |
--priority 4 | |
--since -1d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$true)][string]$CommandLine = '' | |
) | |
$ErrorActionPreference = 'Stop' | |
# lifted from https://stackoverflow.com/questions/16686122/calling-createprocess-from-powershell | |
Add-Type -TypeDefinition @" | |
using System; |
OlderNewer