Skip to content

Instantly share code, notes, and snippets.

@Tokugero
Tokugero / Step1.png
Last active Aug 8, 2019
How to see your inventory in ffxivmb.com
View Example ansible
---
- hosts: virtuals
become: yes
become_user: root
become_method: su
tasks:
- name: Install sudo
apt:
name: sudo
state: present
View SampleHAProxy
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
View generateReport.py
#! 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])
@Tokugero
Tokugero / How-To.md
Last active Dec 8, 2021
Telegraf with pfSense 2.4.4 and pfBlockerNG
View How-To.md

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
View gist:75f29a9594809bca96b30e387528d2db
import csv
import os
import re
# Put this code inside the directory you want to fix tabs
spaces1 = " "
spaces2 = " "
spaces3 = " "
spaces4 = " "