Skip to content

Instantly share code, notes, and snippets.

UserTable:
get: system/login/user
required_keys:
user: name
view: UserView
<!DOCTYPE html>
<html>
<head>
<style>
.CardLink {
display: block;
color: #666;
text-shadow: 0 2px 0 #efefef;
text-decoration: none;
height: 2.75rem;
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'
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))
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))
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
@marzdgzmn
marzdgzmn / logs
Last active January 24, 2019 04:19
/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
- name: Configure named.options
template: src=named.options.j2 dest=/etc/named/named.options
notify:
- restart named-chroot
tags:
- named_options
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]
---
- name: Configure named.options
template: src=named.options.j2 dest=/etc/named/named.options
notify:
- restart named-chroot
tags:
- named_options