Skip to content

Instantly share code, notes, and snippets.

@isalgueiro
isalgueiro / profile.ps1
Last active July 17, 2017 08:46
Windows PowerShell profile setup
$env:LC_ALL="C.UTF-8"
. $env:LOCALAPPDATA\GitHub\shell.ps1
. $env:github_posh_git\profile.example.ps1
. (Join-Path -Path (Split-Path -Parent -Path $PROFILE) -ChildPath $(switch($HOST.UI.RawUI.BackgroundColor.ToString()){'White'{'Set-SolarizedLightColorDefaults.ps1'}'Black'{'Set-SolarizedDarkColorDefaults.ps1'}default{return}}))
@isalgueiro
isalgueiro / 50-pfsense.conf
Last active January 22, 2022 13:58
Logstash configuration for pfSense firewall logs (filterlog)
input {
# output logs in pfsense to syslog
tcp {
port => 10514
type => "pfsense"
tags => ["unparsed"]
}
udp {
port => 10514
type => "pfsense"