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 | |
# Set defaults if not provided by environment | |
CHECK_DELAY=${CHECK_DELAY:-5} | |
CHECK_IP=${CHECK_IP:-1.1.1.1} | |
PRIMARY_IF=${PRIMARY_IF:-eno8303} | |
PRIMARY_GW=${PRIMARY_GW:-192.168.15.1} | |
# Cycle healthcheck continuously with specified delay | |
while sleep "$CHECK_DELAY" |
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
import React from 'react'; | |
import { autobind } from 'core-decorators'; | |
import d3 from 'd3'; | |
import moment from 'moment'; | |
import classNames from 'classnames'; | |
import { getFirstDate } from 'utils/Consolidator'; | |
import { shouldComponentUpdate } from 'utils/shouldUpdate'; | |
import { classes, sort } from 'utils/Presentation'; | |
import Money from 'utils/Money'; |
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
// dependencies | |
var async = require('async'); | |
var path = require('path'); | |
var AWS = require('aws-sdk'); | |
var gm = require('gm').subClass({ | |
imageMagick: true | |
}); | |
var util = require('util'); | |
// get reference to S3 client | |
var s3 = new AWS.S3(); |