This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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]' |
NewerOlder