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 bash | |
# generate a strong password without shell special characters | |
# defaults to 32 characters, overridden to a number passed as first arg | |
# uses xclip to copy to clipboard | |
# uses zenity to alert to desktop (from gnome-run-prompt) | |
gen_pass_length=32 | |
if [ $# -eq 1 ]; then | |
gen_pass_length="$1" |
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
; /etc/fail2ban/jail.local | |
[maltrail-iptables] | |
enabled = true | |
filter = maltrail | |
bantime = 31536000 | |
action = iptables-allports[name=MALTRAIL, protocol=all] | |
;action = vesta[name=MALTRAIL] | |
echo "logpath = /var/log/maltrail/$(ls -1t /var/log/maltrail | grep -E '^[^error.log]' | head -1)" | |
maxretry = 1 |
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
<VirtualHost *:{PORT}> | |
ServerName www.yourdomain.com | |
ServerAdmin mail@domain.com | |
DocumentRoot /var/www/yourdir/ | |
<Directory /var/www/yourdir> | |
Options Indexes FollowSymLinks | |
AllowOverride all | |
Order allow,deny |
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
$('.example-countries .typeahead').typeahead({ | |
name: 'countries', | |
prefetch: '../data/countries.json', | |
limit: 10 | |
}); |