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
SourceName="Microsoft-Windows-WAS" host="*" | | |
search recycle | | |
rex field=Message "application pool '(?<appPool>\S*)'" | | |
eval host=upper(host) | | |
eval reason=case(EventCode=5074, "Worker process reached processing time limit", EventCode=5075, "Worker process reached processing request limit", EventCode=5076, "Scheduled recycle", EventCode=5077, "Worker process reached processing virtual memory limit", EventCode=5078, "ISAPI reported a problem so app pool was recycled", EventCode=5079, "Manual recycle", EventCode=5080, "Config changes forced recycle", EventCode=5080, "Config changes forced recycle due to invalidated meta data", EventCode=5117, "Worker process reached processing private vytes (RAM) limit", EventCode=5186, "Worker process was shut down due to inactivity") | | |
table _time host EventCode appPool reason Message |
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 | |
# | |
# An example init script for running a Node.js process as a service | |
# using Forever as the process monitor. For more configuration options | |
# associated with Forever, see: https://github.com/nodejitsu/forever | |
# | |
# You will need to set the environment variables noted below to conform to | |
# your use case, and change the init info comment block. | |
# | |
# This was written for Debian distributions such as Ubuntu, but should still |
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
mail: { | |
transport: 'SMTP', | |
host: 'ssl://email-smtp.us-east-1.amazonaws.com', | |
options: { | |
port: 465, | |
service: 'SES', | |
auth: { | |
user: 'YOUR-SES-ACCESS-KEY-ID', | |
pass: 'YOUR-SES-SECRET-ACCESS-KEY' | |
} |
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
index="_internal" source="*metrics.log" per_host_thruput | chart sum(kb) by series | rename sum(kb) to KBLogged | eval MBLogged=round(KBLogged/1024,1) | fields series MBLogged | search MBLogged>3 | sort -MBLogged |
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
check process newrelic with pidfile /var/run/nrsysmond.pid | |
start program "/etc/init.d/newrelic-sysmond start" | |
start program "/etc/init.d/newrelic-sysmond stop" | |
if 10 restarts within 10 cycles then timeout |
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
ssl on; | |
ssl_certificate /path/to/certs/thedotproduct.org.pem; | |
ssl_certificate_key /path/to/certs/thedotproduct.org.key.unsigned; | |
# References used along with my own work: | |
# https://raymii.org/s/tutorials/Pass_the_SSL_Labs_Test_on_NGINX_(Mitigate_the_CRIME_and_BEAST_attack_-_Disable_SSLv2_-_Enable_PFS).html | |
# https://coderwall.com/p/ebl2qa | |
# http://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/ | |
# http://code-bear.com/bearlog/2013/06/26/nginx-ssl-config-for-forward-secrecy/ | |
# https://www.owasp.org/index.php/Transport_Layer_Protection_Cheat_Sheet#Rule_-_Only_Support_Strong_Cryptographic_Ciphers |
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
server { | |
# Listen on port 80 for any IPv4 address on this server | |
# listen docs: http://wiki.nginx.org/HttpCoreModule#listen | |
listen 80; | |
# Listen on only the selected hostname... | |
server_name <HOSTNAME>; | |
# ...or use the catchall character if you want to handle multiple hostnames | |
# server_name _; |
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
index=* earliest_time=-24h host=* | eval h=lower(host) | stats values(h) |
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
index=* earliest_time=-24h host=* | eval h=lower(host) | stats distinct_count(h) |
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
[ | |
{ "keys": ["super+u"], "command": "upper_case" }, | |
{ "keys": ["super+l"], "command": "lower_case" }, | |
{ "keys": ["ctrl+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} }, | |
{ "keys": ["super+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} }, | |
{ "keys": ["super+shift+down"], "command": "duplicate_line" }, | |
{ "keys": ["super+alt+c"], "command": "git_commit_all" }, | |
{ "keys": ["super+alt+p"], "command": "git_push_origin_master" }, | |
{ "keys": ["tab"], "command": "indent"}, |
OlderNewer