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
| # Fail2Ban filter for SoftEther authentication failures | |
| # Made by quixrick and jonisc | |
| # Thanks to quixrick from Reddit! https://reddit.com/u/quixrick | |
| # Further reference: http://www.vpnusers.com/viewtopic.php?f=7&t=6375&sid=76707e8a5a16b0c9486a39ba34763901&view=print | |
| [INCLUDES] | |
| # Read common prefixes. If any customizations available -- read them from | |
| # common.local | |
| before = common.conf |
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
| /** | |
| * Will not select system databases (greyed out) | |
| * Works with regular expressions: | |
| * '^te' -> matches 'test' database | |
| * '^est' -> will NOT match 'test' database | |
| * | |
| * I created this to easily drop numerous databases | |
| * that are part of a large system, such as 'phabricator.' | |
| */ |
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
| Function Get-AbsolutePath { | |
| <# | |
| .SYNOPSIS | |
| Get the absolute path. | |
| .DESCRIPTION | |
| Provides a simple way for transforming any path, relative or not, | |
| into an absolute path. If no path is specified, the current working |
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 | |
| function mime_type($file) { | |
| // there's a bug that doesn't properly detect | |
| // the mime type of css files | |
| // https://bugs.php.net/bug.php?id=53035 | |
| // so the following is used, instead | |
| // src: http://www.freeformatter.com/mime-types-list.html#mime-types-list | |
NewerOlder