-
Download FreeBSD 11.1 VMDK and create a VM with it as HDD.
-
Get FreeBSD source tree for your exact FreeBSD version and uncompress it to /usr/src:
fetch -o /tmp ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz tar -C / -xvf /tmp/src.txz
-
Download latest Realtek network driver (you need to input an email address).
Each time a client (dis)connects to the OpenVPN server of pfSense a new Telegram notification will be sent.
Under "VPN" > "Servers" > your server > "Advanced Configuration" > "Custom Options" add the following lines.
client-connect /root/openvpn-telegram.sh
client-disconnect /root/openvpn-telegram.sh
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# Python script to update CDMon dynamic DNS | |
# | |
# @author = @jovimon | |
# @version = 0.1.20200930 | |
# | |
# Prerequisites: sudo pip install requests / sudo apt install python-requests | |
# |
I found many tutorials to install and configure python-broadlink, but all of them are for python 2, and the script has been ported to python3, so I decided to write this little howto.
Tested on a freshly installed Debian Buster container.
Run all commands with root privileges:
apt update
Quick and dirty script to get UPS stats into CollectD so you can forward them to Grafana. Tested with a Salicru UPS configured with the blazer_usb driver.
At some point between the original publication of this howto and FreeNAS 13.1, default nut metrics appeeared on my InfluxDB server, so even though nut sends fewer metrics than the script on this Gist (see the default-nut-metrics.png
file as opposed to the file listing at the end of the howto), I'm going to stick with the default metrics, so I don't have to mess around with installing scripts every time my FreeNAS box reboots.
Steps:
This little guide tries to solve the problems you can find to boot Proxmox 5.4.x freshly installed into newer AMD Athlon / Ryzen CPU computers/servers.
0.- Install Proxmox PVE as you usually do 1.- Upon first reboot, edit the grub parameters of the default entry "Proxmox Virtual Environment GNU/Linux" with the "e" key. 2.- Locate a line that starts with something similar to (hints: starts with linux and says something about vmlinuz): linux /ROOT/pve-1@/boot/vmlinuz-4.15.18-12-pve root=ZFS=rpool/ROOT/pve-1 ro root=ZFS=rpool/ROOT/pve-1 boot=zfs quiet 3.- Add a new keyword " nomodeset" at the end of that line. 4.- Push F10 to boot the system. 5.- Edit /etc/modprobe.d/pve-blacklist.conf file, and add at the end the following line:
# Query a mailman list for all of its registered users | |
# Scraping part based on http://docs.python-guide.org/en/latest/scenarios/scrape/ | |
# If you get errors, install packages: | |
# sudo pip install lxml | |
# sudo pip install requests | |
from lxml import html | |
import requests |
I hereby claim:
- I am jovimon on github.
- I am jovimon (https://keybase.io/jovimon) on keybase.
- I have a public key whose fingerprint is 733E B273 3F23 991A 350C 715C 01BD E66E 74A7 C8DB
To claim this, I am signing this object:
# Plaso is great but elasticsearch output module does not always work, so there's | |
# a config to parse json_line plaso output into ELK | |
# | |
# Usage (tested on Ubuntu 14.04 w/ ELK packages and Plaso git version 1.5.1_20160922): | |
# for i in $(ls *.evtx); do name=${i::-5}; echo $name; log2timeline.py $name.plaso $i; psort.py -o json_line -w json/$name.json $name.plaso; done | |
# | |
# Note: | |
# To wipe elasticsearch data: $ sudo rm -r /var/lib/elasticsearch/elasticsearch/* | |
# To remove logstash sincedb files so input files can be reread: $ sudo rm /var/lib/logstash/.sincedb_* |