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
UserTable: | |
get: system/login/user | |
required_keys: | |
user: name | |
view: UserView |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
.CardLink { | |
display: block; | |
color: #666; | |
text-shadow: 0 2px 0 #efefef; | |
text-decoration: none; | |
height: 2.75rem; |
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
rrdtool graph example.png --width '400' --start 1550031620 --end 1550036412 \ | |
'DEF:ds0a=/home/marz/getafix/ixp001-bits.rrd:ds0:AVERAGE:step=1800' \ | |
'DEF:ds1a=/home/marz/getafix/ixp001-bits.rrd:ds1:AVERAGE:step=1800' \ | |
'DEF:ds0m=/home/marz/getafix/ixp001-bits.rrd:ds0:MAX:step=1800' \ | |
'DEF:ds1m=/home/marz/getafix/ixp001-bits.rrd:ds1:MAX:step=1800' |
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 'rrd' | |
require 'yaml' | |
require 'nokogiri' | |
dump_xml = File.join(__dir__, 'ixp.xml') | |
`rrdtool dump #{ARGV[0]} #{dump_xml}` | |
node = Nokogiri::XML::Node.new('ixp_dump', File.open(dump_xml)) | |
# node = Nokogiri::XML::Node.new('ixp_dump', File.open(dump_xml)) |
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 'rrd' | |
require 'yaml' | |
require 'nokogiri' | |
dump_xml = File.join(__dir__, 'ixp.xml') | |
`rrdtool dump #{ARGV[0]} #{dump_xml}` | |
node = Nokogiri::XML::Node.new('ixp_dump', File.open(dump_xml)) | |
# node = Nokogiri::XML::Node.new('ixp_dump', File.open(dump_xml)) |
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
Values = 300, 600, 900, 1200 | |
Step = 300 seconds | |
COUNTER DS = 1, 1, 1, 1 | |
DERIVE DS = 1, 1, 1, 1 | |
ABSOLUTE DS = 1, 2, 3, 4 | |
GAUGE DS = 300, 600, 900, 1200 |
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
/usr/local/bin/quick-fedora-mirror -n -d 6 | |
Mirror starting: Thu Jan 24 12:13:02 +08 2019 | |
>> Log: Run start: cfg /etc/quick-fedora-mirror.conf, tmp /tmp/quick-mirror.zdJ3pd1A2x | |
Times: | |
LASTTIME=0 | |
starttime=1548303177 | |
TIMEFILE=/var/log/mirror/fedora_timefile | |
Dirs: | |
tempd=/tmp/quick-mirror.zdJ3pd1A2x | |
DESTD=/srv/mirror/fedora |
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
- name: Configure named.options | |
template: src=named.options.j2 dest=/etc/named/named.options | |
notify: | |
- restart named-chroot | |
tags: | |
- named_options |
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
ansible-playbook -i ./inventories/testing/hosts plays/ns-lns.yml --tags lns --list-task master :: 19h :: ● :: ⬡ | |
playbook: plays/ns-lns.yml | |
play #1 (ns-lns): Deploy local nameservers TAGS: [] | |
tasks: | |
Configure as a local nameserver TAGS: [lns] |
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
--- | |
- name: Configure named.options | |
template: src=named.options.j2 dest=/etc/named/named.options | |
notify: | |
- restart named-chroot | |
tags: | |
- named_options |