➡️ Moved to GitHub Community
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Keep these files out of the repo | |
/wp-content/themes/twenty* | |
/wp-content/upgrade | |
/wp-content/uploads | |
/sitemap.* | |
/wp-config.php | |
*.sql | |
# Hidden files | |
*.DS_Store |
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/python | |
import os | |
import sys | |
import csv | |
import datetime | |
import time | |
import twitter | |
def test(): |
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
# Fail2Ban Configuration File | |
# | |
# filter.d/apache-antibot.conf | |
# | |
# | |
# match stuff like this from *access.log from a dummy NameVirtualHost or a normal NameVirtualHost | |
# the dummy host always returns 403 via rewrite rule | |
# | |
# match all 404s or 403s where url contains special "badurl" parts | |
# |
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
$AllUsers = Get-Mailbox * -resultsize:unlimited | |
ForEach ($Alias in $AllUsers) | |
{ | |
$Mailbox = "" + $Alias.Name + ":\Inbox" | |
Get-MailboxFolderPermission -identity $Mailbox | Select User,FolderName,AccessRights ` | |
| Ft $Mailbox,User,FolderName,AccessRights >> delegates.csv | |
} |
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
Set-Executionpolicy RemoteSigned | |
$days=30 #You can change the number of days here | |
$IISLogPath="C:\inetpub\logs\LogFiles\" | |
$ExchangeLoggingPath="C:\Program Files\Microsoft\Exchange Server\V15\Logging\" | |
Write-Host "Removing IIS and Exchange logs; keeping last" $days "days" | |
Function CleanLogfiles($TargetFolder) | |
{ | |
if (Test-Path $TargetFolder) { |