Skip to content

Instantly share code, notes, and snippets.

View FlorianHeigl's full-sized avatar

Florian Heigl FlorianHeigl

View GitHub Profile
@FlorianHeigl
FlorianHeigl / docker-compose.yml
Created February 24, 2022 23:54
check_mk via compose (clean config)
---
version: '3'
services:
checkmk:
image: checkmk/check-mk-raw:2.0.0-latest
ports:
- "162:162/udp"
- "514:514/udp"
- "514:514/tcp"
- "6557:6557/tcp"
@FlorianHeigl
FlorianHeigl / junos-netflow.cmd
Last active March 6, 2024 12:41
Configure Juniper NFX NexGen NetFlow (inline)
set system ntp server ntp1.ispname.net
set interfaces ge-1/0/2 unit 0 family inet sampling input
set interfaces ge-1/0/2 unit 0 family inet sampling output
set services flow-monitoring version9 template ipv4-test ipv4-template
set forwarding-options sampling instance test-ins family inet input rate 100
set forwarding-options sampling instance test-ins family inet input run-length 19
set forwarding-options sampling instance test-ins family inet output flow-server 172.16.xx.xx port 2055
set forwarding-options sampling instance test-ins family inet output flow-server 172.16.xx.xx version9 template ipv4-test
set forwarding-options sampling instance test-ins family inet output inline-jflow source-address 192.168.x.x
@FlorianHeigl
FlorianHeigl / omd-tuning.sh
Last active February 29, 2024 10:46
omd tuning script
#!/usr/bin/env bash
# License: BSD
# Author: Florian Heigl
set -eu
# variablen ziehen falls nicht da
SITECFG=~/etc/omd/site.conf
test -r $SITECFG && bash -eun $SITECFG && source $SITECFG
#!/bin/sh
#
# This shell script if placed in /etc/apcupsd
# will be called by /etc/apcupsd/apccontrol when apcupsd
# loses contact with the UPS (i.e. the serial connection is not responding).
# We send an email message to root to notify him.
#
HOSTNAME=`hostname`
MSG="$HOSTNAME Communications with UPS $1 lost"
@FlorianHeigl
FlorianHeigl / hosts_synology_misc
Created January 8, 2024 21:51
pfSense rules for Synology NAS
gofile.me File Sharing
checkport.synology.com Connectivity Test 82/tcp
help.synology.com Online Help (needed from NAS?)
sns.synology.com Push notification
notification.synology.com Push notification
myds.synology.com Entry added Mon, 08 Jan 2024 21:43:51 +0000
database.clamav.net Antivirus - ClamAV
myds.synology.com Antivirus - ClamAV
update.nai.com Antivirus - McAfee
docker.io Containers und C2 ID Edge
@FlorianHeigl
FlorianHeigl / yum-upgrade-output
Created January 5, 2024 16:59
yum fastestmirror country bug russia
[root@gitlab ~]# yum upgrade
Loaded plugins: etckeeper, fastestmirror, fs-snapshot, keys, post-transaction-actions, ps, rpm-warm-cache
Determining fastest mirrors
epel/x86_64/metalink | 33 kB 00:00:00
Including mirror: centos.schlundtech.de
Including mirror: mirror.speedkom.de
Including mirror: de.mirrors.clouvider.net
Including mirror: centos.intergenia.de
Including mirror: mirror1.hs-esslingen.de
Including mirror: ftp.tu-chemnitz.de
@FlorianHeigl
FlorianHeigl / cheatsheets.md
Last active December 29, 2023 07:07
Printable Cheat Sheets for Software

A collection of links to useful cheat sheets.

Only what's properly printable can get a spot at the top of this list. It should also be small enough to fit on a few pages. almost all links in this document were designed by their creators so that YOU can print them in a good-looking format and store them however is best for you. Anything that isn't really something you could print in A4/UfS Letter format, but is still a well-made cheatsheet can get a spot at the end of the page.

Pleae contribute any you remember you've seen and liked. It would be wonderful if we can get these to be something more commonly made.

Search Engines

@FlorianHeigl
FlorianHeigl / README.md
Last active November 22, 2023 19:40
pfSense IPSec VPN Status
@FlorianHeigl
FlorianHeigl / mix-qr.zpl
Created August 31, 2023 18:17
zpl tests
^XA
^FO20,10^BQ,2,4^FDMM,Ahttp://netbox.ifz-muenchen.de/obj-demo-url^FS
^FO145,10^BQ,2,3^FDMM,AHALLO ICH BIMS^FS
^CF0,20
^FO143,100^FDsw-demo^FS
^XZ
@FlorianHeigl
FlorianHeigl / match-cables.py
Last active August 29, 2023 17:58
cable barcode id matcher
$ cat gpt-matchcables.py
#!/usr/bin/python3
import re
import csv
# Initialize dictionaries to store data from both CSV files
switchports_data = {}
patch_panels_data = {}