Skip to content

Instantly share code, notes, and snippets.

View fastjack's full-sized avatar

Martin Maciaszek fastjack

View GitHub Profile
sensor:
- platform: template
sensors:
nzbget_download_paused:
friendly_name: "Downloads angehalten"
icon_template: >-
{% if is_state('sensor.nzbget_download_paused', 'False') %}
mdi:play
{% else %}
mdi:pause
sensor.nzbget_download_paused:
homebridge_hidden: true
emulated_hue_hidden: true
icon_template: "{% if is_state('sensor.nzbget_download_paused', 'False') %}mdi:play{% else %}mdi:pause{% endif %}"
@fastjack
fastjack / Additional configuration for Telegraf
Last active December 4, 2022 13:14
Quick and dirty gateway metrics for telegraf on pfSense
[[inputs.exec]]
commands = ["/usr/local/libexec/telegraf/gateways.py"]
timeout = "5s"
data_format = "influx"
prompt_context() {
local user=`whoami`
if [[ "$user" != "$DEFAULT_USER" || -n "$SSH_CONNECTION" ]]; then
prompt_segment white blue " %(!.%{%F{yellow}%}.)$user@%m "
fi
}
ugen0.1: <XHCI root HUB 0x8086> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.2: <USB-Serial Controller Prolific Technology Inc.> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
ugen0.3: <USB2.0 Hub vendor 0x05e3> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA)
ix0@pci0:5:0:0: class=0x020000 card=0x000c8086 chip=0x10fb8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82599ES 10-Gigabit SFI/SFP+ Network Connection'
class = network
subclass = ethernet
ix1@pci0:5:0:1: class=0x020000 card=0x000c8086 chip=0x10fb8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82599ES 10-Gigabit SFI/SFP+ Network Connection'
class = network
subclass = ethernet
lagg0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c0099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,VLAN_HWTSO,LINKSTATE>
ether 1c:98:ec:0e:62:54
inet 10.0.1.250 netmask 0xffffff00 broadcast 10.0.1.255
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet autoselect
status: active
laggproto lacp lagghash l2,l3,l4
laggport: bge0 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING>
laggport: bge1 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING>
@fastjack
fastjack / logstash.conf
Created October 11, 2016 08:13
Logstash configuration for my irssi logs
input {
file {
type => "irssi_logs"
path => "/home/fastjack/irclogs/*/*/*.log"
start_position => "beginning"
}
}
filter {
2015-03-08 21:13:38 +0100
qmake -set PKG_CONFIG /usr/local/bin/pkg-config
2015-03-08 20:47:39 +0100
qmake -set PKG_CONFIG /usr/local/bin/pkg-config