Skip to content

Instantly share code, notes, and snippets.

import csv
import re
def main():
moduleData = {}
table = {}
rows = []
title = ""
with open("NFIRS_Spec_Tables_2013.csv", 'r') as spec:
@Tokugero
Tokugero / How-To.md
Last active December 8, 2021 10:35
Telegraf with pfSense 2.4.4 and pfBlockerNG

How to Install Telegraf logparser for pfBlockerNG

On pfSense

Step 1: Install pfBlockerNg-devel

System > Package Manager > Available Packages > pfBlockerNG-devel (As of this writing this was 2.2.5_19) (Optional, run the /usr/local/bin/geoipupdate.sh script)

[2.4.4-RELEASE][root@pfSense.lab]/root: /usr/local/bin/geoipupdate.sh
Fetching GeoIP.dat and GeoIPv6.dat...
/usr/local/share/GeoIP/GeoIPupdate.VOmIvG/GeoI100% of  694 kB 6683 kBps 00m00s
/usr/local/share/GeoIP/GeoIPupdate.TeBBKT/GeoI100% of 1171 kB 6629 kBps 00m00s
@Tokugero
Tokugero / Step1.png
Last active August 8, 2019 23:57
How to see your inventory in ffxivmb.com
Step1.png
---
- hosts: virtuals
become: yes
become_user: root
become_method: su
tasks:
- name: Install sudo
apt:
name: sudo
state: present
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
#! bin/python
import json
from datetime import datetime,date
#open report to memory (look for date today)
filename = str(date.today())+".json"
dbRaw = open("db/"+filename, "r")
dbLines = dbRaw.readlines()
try:
db = json.loads(dbLines[0])
import csv
import os
import re
# Put this code inside the directory you want to fix tabs
spaces1 = " "
spaces2 = " "
spaces3 = " "
spaces4 = " "