Skip to content

Instantly share code, notes, and snippets.

@aaearon
aaearon / PAMwithDC.ps1
Last active April 24, 2023 06:11
Effortlessly Setting Up A CyberArk PAM Self-Hosted Lab with AutomatedLab
#
# See the article at https://timschindler.blog/effortlessly-setting-up-a-cyberark-pam-self-hosted-lab-with-automatedlab
#
New-LabDefinition -Name PAM -DefaultVirtualizationEngine HyperV -VmPath C:\AutomatedLab-VMs
Add-LabVirtualNetworkDefinition -Name PAM -AddressSpace 192.168.0.0/24
$PSDefaultParameterValues = @{
'Add-LabMachineDefinition:OperatingSystem' = 'Windows Server 2019 Datacenter Evaluation (Desktop Experience)'
'Add-LabMachineDefinition:Memory' = 4GB
@aaearon
aaearon / mvg-card.js
Last active November 25, 2020 17:13 — forked from DavidMStraub/mvg-card.js
MVG Live custom card for Home Assistant Lovelace UI
class MvgCard extends HTMLElement {
set hass(hass) {
const entityId = this.config.entity;
const state = hass.states[entityId];
const name = state.attributes['friendly_name']
if (!this.content) {
const card = document.createElement('ha-card');
card.header = name;
@aaearon
aaearon / hdhr-listings-to-m3u.py
Last active January 10, 2023 05:32
Convert HDHomeRun Prime Listings to M3U Format
#
# this script will convert the hdhomerun listings (channels) to
# m3u format for use with external media players. before running
# this script, be sure to modify the <<config>> variable settings
# below.
#
# Suggested Usage: This script should be run on a cron to keep
# the channel lineup to date. Below is an example of how to execute this script:
# python /path/to/script/hdhomerun-prime-listings-to-m3u.py > /path/to/playlist.m3u
#