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
{ | |
"checks": { | |
"check_rds_disk": { | |
"type": "set", | |
"command": "/opt/sensu/embedded/bin/ruby ./check_rds.rb -i hostname_01 --disk-warning-over 70 --disk-critical-over 80 --period 1800", | |
"command": "/opt/sensu/embedded/bin/ruby ./check_rds.rb -i hostname_02 --disk-warning-over 40 --disk-critical-over 95 --period 1800", | |
"command": "/opt/sensu/e |
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
{ | |
"fs.file-max": "128000", | |
"net.core.netdev_max_backlog": "5000", | |
"net.core.somaxconn": "500", | |
"net.ipv4.ip_local_port_range": "10152 65500", | |
"net.ipv4.tcp_dsack": "0", | |
"net.ipv4.tcp_fack": "0", | |
"net.ipv4.tcp_fin_timeout": "30", | |
"net.ipv4.tcp_keepalive_intvl": "30", | |
"net.ipv4.tcp_keepalive_probes": "3", |
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
###GOOGLE Console DEV | |
Original JavaScript autorized | |
http://grafana.mydomain.com.br | |
URIs redirect autorized | |
http://grafana.mydomain.com.br:3000/login/google | |
### NGINX PROXY | |
server { |
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
filetype off " required | |
filetype plugin indent on | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
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
git reset --soft HEAD~1 | |
git reset HEAD filexxx |
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
Delete all containers | |
docker rm -v $(docker ps -qa) | |
-v remove the volume | |
Delete all images | |
docker rmi $(docker images -q) | |
docker rmi $(docker images -q -f "dangling=true") | |
Removes all containers running under Docker, so use with caution. | |
docker ps -a | awk '{print $1}' | xargs docker kill |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
require 'timeout' | |
require 'rubygems' if RUBY_VERSION < '1.9.0' | |
require 'sensu-handler' | |
require 'fog' | |
class Ec2Node < Sensu::Handler | |
def filter; end | |
def handle | |
# #YELLOW |
NewerOlder