Skip to content

Instantly share code, notes, and snippets.

View lordmilko's full-sized avatar

lordmilko

View GitHub Profile
@lordmilko
lordmilko / Build-NuGet.ps1
Last active December 19, 2018 10:09
PrtgAPI Appveyor Config
$ProgressPreference = "SilentlyContinue"
$ErrorActionPreference = "Stop"
$localProjectFolder = $null # Replace this with the path to the PrtgAPI project under the repo when testing locally
function Main
{
try
{
Write-Host -ForegroundColor Cyan "Building NuGet Package"
@lordmilko
lordmilko / appveyor.yml
Last active March 24, 2017 06:08
PrtgAPI.CustomSensors Appveyor Config
version: 'Build #{build}'
install:
- ps: cinst pester
build_script:
- ps: |
try
{
$version = (Import-PowerShellDataFile .\PrtgAPI.CustomSensors\PrtgAPI.CustomSensors.psd1).ModuleVersion
Write-Host "Attempting to set Appveyor build to version '$version'"
Update-AppveyorBuild -Version $version
@lordmilko
lordmilko / Tail.reg
Last active June 13, 2022 17:17
Tail Context Menu Item - Right click text files to tail them!
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Classes\txtfile\shell\Tail]
[HKEY_CURRENT_USER\SOFTWARE\Classes\txtfile\shell\Tail\command]
@="\"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" -noexit -command \"function tail($path) {$host.ui.RawUI.WindowTitle = $path; gc $path -tail 10 -wait} tail\" \"'%1'\""