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
| This is a test Gist. |
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
| ErrorDocument 404 / | |
| # BEGIN WordPress | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^index\.php$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule . /index.php [L] |
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
| ErrorDocument 404 / | |
| # BEGIN WordPress | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^index\.php$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_URI} !(^/wp-.*) |
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
| FILE=/home/siteup.log | |
| SITE=http://quranerkotha.com | |
| SIZE=`stat -c %s $FILE` | |
| # Delete the file if it is over 1MB already | |
| if [ $SIZE -ge 1000000 ]; then | |
| rm FILE | |
| fi | |
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/bash | |
| if wget -nv -p $1 &> $2 | |
| then | |
| if cat $2 | grep -i "error" | |
| then | |
| echo "Site has error" | |
| cat $2 | grep -i -B 1 "error" | mail -s "$3" $4 | |
| else | |
| echo "Site OK" |
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/bash | |
| cd /home/ | |
| ./monitorsite http://blog.omaralzabir.com/about/ islamblog.log "[ERROR]IslamBlog" [email protected] | |
| ./monitorsite http://omaralzabir.com/using-custom-font-without-slowing-down-page-load/ omarblog.log "[ERROR]OmarBlog" [email protected] | |
| ./monitorsite http://quranerkotha.com/aboutus/ quranerkotha.log "[ERROR]QuranerKotha" [email protected] |
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
| # Build, anonymize config, deploy, zip, commit, push in one shot | |
| param ( | |
| [string]$solution = "OracleDashboard.sln", | |
| [string]$zipname = "OracleDashboard.zip", | |
| [string]$compressor = "c:\Program Files\7-Zip\7z.exe", | |
| [string]$folder = "OracleDashboard", | |
| [string]$deployPath = "..\Binary", | |
| [string]$commitFrom = "..", | |
| [Parameter(Mandatory=$true)][string]$comment | |
| ) |
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
| { | |
| "template":"logstash-*", | |
| "settings":{ | |
| "index.refresh_interval":"5s" | |
| }, | |
| "mappings":{ | |
| "_default_":{ | |
| "dynamic_templates":[ | |
| { |
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
| input { | |
| beats { | |
| port => 5045 | |
| type => 'iis' | |
| } | |
| } | |
| # First filter | |
| filter { |
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
| ################### Filebeat Configuration Example ######################### | |
| ############################# Filebeat ###################################### | |
| filebeat: | |
| # List of prospectors to fetch data. | |
| prospectors: | |
| # Each - is a prospector. Below are the prospector specific configurations | |
| - | |
| # Paths that should be crawled and fetched. Glob based paths. | |
| # To fetch all ".log" files from a specific level of subdirectories |
OlderNewer