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
type: leaky | |
name: teol/antiflood | |
description: "anti flood against endpoints" | |
filter: "evt.Meta.log_type in ['http_access-log', 'http_error-log'] && Meta.http_path startsWith '/picture' && evt.Parsed.verb in ['GET', 'POST']" | |
leakspeed: 0.5s #tweak | |
capacity: 10 #tweak | |
groupby: "evt.Meta.source_ip + '/' + evt.Meta.http_path" | |
blackhole: 1m | |
labels: | |
service: http |
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
check process crowdsec with pidfile /var/run/crowdsec.pid | |
#monit procmatch crowdsec | |
#monit procmatch cs-firewall-bouncer |
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/sh | |
script=`basename "$0"` | |
if [ $# -gt 0 ] && [ "$1" = "-e" ]; then | |
e="-e" | |
fi | |
echo "Removing old Postman tarballs" | |
rm -f $(ls Postman*.tar.gz) |
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
<?php | |
/** | |
* Magnet links library for PHP | |
* | |
* @link http://stackoverflow.com/questions/6634059/magnet-links-library-for-php | |
*/ | |
$magnetUri = 'magnet:?xt=urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C'; | |
echo 'Magnet URI demo: ', $magnetUri, "\n\n"; |