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 python | |
# | |
# Find and clean up invalid images | |
# | |
# bY Marco Rodrigues 2021 - <[email protected]> | |
# | |
import imghdr | |
from os import walk, path, remove | |
dir_moments = '/volume1/homes/user/Drive/Moments' |
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
jail.conf: | |
[apache-antiloris] | |
enabled = true | |
filter = antiloris | |
action = iptables-multiport[name=apache-antiloris,port="80,443"] | |
logpath = /var/log/httpd/error_log | |
filter.d/antiloris.conf: | |
[Definition] | |
# Option: failregex |
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
# Start httpd from zabbix with httpd_t domain | |
policy_module(myfix, 1.0.0) | |
optional_policy(` | |
gen_require(` type httpd_initrc_exec_t, zabbix_agent_t; ') | |
init_labeled_script_domtrans(zabbix_agent_t, httpd_initrc_exec_t) | |
') |