Skip to content

Instantly share code, notes, and snippets.

@smilzo
smilzo / ElkonMac-0.1
Created April 18, 2019 12:37
ELK Stack on Macosx via Homebrew with different users for any service, running as daemon at boot time
# ElkOnMac 0.1
# This is not a script but a list of command for install the ELK stack on Macos via Homebrew, but using different users for different services,
# that starts at boot time. This kind of installation is not found in any guide who I have searched, only guide for starting the ELK stack after login.
# Released under Creative Commons license Attribution 4.0 International (CC BY 4.0)
NEW_UID=$(( $(dscl . -list /Users UniqueID | awk '{print $2}' | sort -n | tail -1) + 1 )); echo $NEW_UID
# Use first available gid from the output of:
dscl . list /Groups PrimaryGroupID | tr -s ' ' | sort -n -t ' ' -k2,2
@smilzo
smilzo / opnsense-vpn.cfg
Last active April 12, 2024 08:23
Fritzbox VPN configuration with OPNSense
// This configuration is not mine but found on a german forum, and modified for my needs. I'm sharing because all info are in german
// Comment about a more secure VPN cfg are welcome, this is mere cut and past because testing is slow
//
// On the OPNSense side, configure the IPSEC tunnel in this way
// Tunnel Setting:
//
// - Connection method: I've put "Respond only" because the OPNSense is installed on stable server
// - Key Exchange version: V1
// - Internet Protocol: IPv4
// - Interface: WAN
@smilzo
smilzo / tutorial ISO.txt
Last active June 6, 2024 06:06
Create ESXi 7.0U3c install ISO with USB-NIC Fling
I need form my homelag to create an ISO with the fling USB-NIC because the realtek chipset
on motherboard is not recognized by ESXi 7.0U3c, so I used an USB Network adapter for my
home assembled server with an i9 9900k
You can find the Fling at: https://flings.vmware.com/usb-network-native-driver-for-esxi and
download ESXi703-VMKUSB-NIC-FLING-51233328-component-18902399.zip
Now download the offline VMware-ESXi-7.0U3c-19193900-depot.zip from your VMWare account, I'm working
on a new version with the online version, but now it work with the zip from VMWare
Install VMware Powercli
Open Powershell as Administrator and launch