Skip to content

Instantly share code, notes, and snippets.

@marcohald
marcohald / Get-ParsedWindowsUpdateLog.ps1
Created February 23, 2022 12:25
Parse the Logfile of Get-WindowsUpdateLog into a PsObject
Get-WindowsUpdateLog
$lines = Get-Content "$([System.Environment]::GetFolderPath("Desktop"))\WindowsUpdate.log"
$parsed = $lines | ForEach-Object {
[PSCustomObject]@{
'Timestamp' = $_.Substring(0,27)
'ProcessID' = $_.Substring(28,6).Trim()
'ThreadID' = $_.Substring(34,6).Trim()
'Task' = $_.Substring(40,15).Trim()
@marcohald
marcohald / enigma2-kodi-nfo-generator.py
Created September 28, 2018 21:55
Creates NFO Files for Kodi based on the Engima2 EIT file
#!/usr/bin/python
# encoding: utf-8
#
# EitSupport
# Copyright (C) 2011 betonme
# Copyright (C) 2016 Wolfgang Fahl
# Copyright (C) 2018 Marco Hald
#
# This EITParser is based on:
# https://github.com/betonme/e2openplugin-EnhancedMovieCenter/blob/master/src/EitSupport.py
@marcohald
marcohald / monitor_alfred_master.sh
Last active January 8, 2017 12:54
Script to monitor alfred Announcements
#!/bin/sh
#Define the IPv6 Link Local addresses of the known Alfred Masters
masters="fe80::ff:feee:1 fe80::ff:feee:3"
if [ "$1" != "" ]; then
interface="$1"
else
echo "Please provide an interface for tcpdump as argument."