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
# Run me with: | |
# | |
# $ nginx -p /path/to/this/file/ -c nginx.conf | |
# | |
# All requests are then routed to authenticated user's index, so | |
# | |
# GET http://user:password@localhost:8080/_search?q=* | |
# | |
# is rewritten to: | |
# |
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
s/NUMBER(22,0)/BIGINT/ | |
s/NUMBER(9,0)/INT/ | |
s/NUMBER(8,0)/INT/ | |
s/NUMBER(6,0)/MEDIUMINT/ | |
s/NUMBER(5,0)/SMALLINT/ | |
s/NUMBER(3,0)/TINYINT/ | |
s/NUMBER(2,0)/TINYINT/ | |
s/NUMBER(1,0)/BIT/ | |
s/NUMBER(16,2)/DECIMAL(16,2)/ | |
s/NUMBER(11,2)/DECIMAL(11,2)/ |
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 | |
# Check out the blog post at: | |
# | |
# http://www.philipotoole.com/influxdb-and-grafana-howto | |
# | |
# for full details on how to use this script. | |
AWS_EC2_HOSTNAME_URL=http://169.254.169.254/latest/meta-data/public-hostname | |
INFLUXDB_DATABASE=test1 |