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
var Prometheus = Prometheus || {}; | |
var graphTemplate; | |
var INPUT_DEBOUNCE_WAIT = 500; // ms | |
var SECOND = 1000; | |
/** | |
* Graph | |
*/ | |
Prometheus.Graph = function(element, options, handleChange, handleRemove) { |
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 | |
# Setup network namespaces for devices with the same IP adress | |
# command-line: ./dev-setup-netns.sh ethernet-iface netns-label | |
# example: ./dev-setup-netns.sh enp0s20u2 netns-dev1 | |
# | |
# Task: | |
# device interface ip is permament on device side: 192.168.1.1 | |
# host interface ip is permanent for device: 192.168.1.254 | |
# bridge ip address 10.0.0.254 | |
# netns internal ip on interface v${netns-label}-in will be defined from amount of network namespaces 10.0.0.{i+1} |
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 | |
# create custom bootable iso for CentOS 7 with kickstart | |
if [ $# -lt 2 ] | |
then | |
echo "Usage1: $0 path2iso path2kickstart" | |
exit 1 | |
else | |
if [ ! -f $1 ] | |
then |