Skip to content

Instantly share code, notes, and snippets.

@ethzero
ethzero / ApacheLogParser.psm1
Last active March 17, 2024 23:44 — forked from sunnyone/ApacheLogParser.psm1
Apache Log Parser for PowerShell
function Read-ApacheLog
{
param(
[Parameter(Mandatory=$true)]
[string]
$Path
)
Get-Content -Path $Path | Foreach-Object {
# combined format
@ethzero
ethzero / geoserver
Last active September 26, 2022 22:25 — forked from dancingfrog/geoserver
Sample /etc/init.d script for running GeoServer as a service
#!/bin/sh
### BEGIN INIT INFO
# Provides: GeoServer
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: GeoServer OGC server
### END INIT INFO
@ethzero
ethzero / pushover
Created October 5, 2020 20:54 — forked from outadoc/pushover
Pushover Bash Script
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: ./pushover <message> [title]"
exit
fi
MESSAGE=$1
TITLE=$2