- Configuration properties is REPLACED magic values used inside classes.
- Env properties is arguments for any configurations properties, E.g. app_path().
- Xemoe/Contracts/EnvLoaderContract
| $HTTP["url"] =~ "^/grafana" { | |
| proxy.server = ( "" => | |
| (( "host" => "127.0.0.1", "port" => 3001 )) | |
| ) | |
| proxy.debug = 1 | |
| } | |
| $SERVER["socket"] == ":3001" { | |
| url.rewrite-once = ( "^/grafana/(.*)$" => "/$1" ) | |
| proxy.server = ( "" => ( "" => ( "host" => "127.0.0.1", "port" => 3000 ))) | 
| 'use strict'; | |
| const bigInt = require("big-integer"); | |
| function s26toi(s) { | |
| const base = 26; | |
| let ret = 0; | |
| let numl = String(s).length; | 
| #!/bin/bash | |
| # | |
| # Configure network interfaces scripts | |
| # Ansible managed: /vagrant/005-application/roles/sran.network-interfaces/templates/configure-network-interfaces.sh.j2 modified on 2016-03-14 22:42:44 by vagrant on ubuntu | |
| # | |
| #################################################################################################### | |
| # Configure bridge interfaces # | |
| ############################### | 
Modify influxdb 0.9 retention policy on localhost:8083
ALTER RETENTION POLICY default ON collectd DURATION 3d DEFAULT
Show retention policy
| (function() { | |
| // | |
| // Initial variables | |
| // | |
| var w,h,div,tooltip,_w,_h; | |
| var sizes = d3.scale.linear() | |
| .range([4, 400]); | 
| IANA-IPPM-METRICS-REGISTRY-MIB DEFINITIONS ::= BEGIN | |
| IMPORTS | |
| OBJECT-IDENTITY, MODULE-IDENTITY, mib-2 | |
| FROM SNMPv2-SMI; | |
| ianaIppmMetricsRegistry MODULE-IDENTITY | |
| LAST-UPDATED "201508140000Z" -- August 14, 2015 | |
| ORGANIZATION "IANA" | 
| #!/bin/bash | |
| type realpath &>/dev/null | |
| if [ $? -eq 1 ]; then | |
| sudo apt-get -qq update && sudo apt-get -qq install realpath -y | |
| fi | |
| type lftp &>/dev/null | |
| if [ $? -eq 1 ]; then | |
| sudo apt-get -qq update && sudo apt-get -qq install lftp -y | 
sudo tshark -i em0 -f "tcp port 514"