Skip to content

Instantly share code, notes, and snippets.

#Requires -Version 7
# Version 1.0.7
# check if newer version
$gistUrl = "https://api.github.com/gists/569c2288c015150eba622e860a4a6d2b"
$latestVersionFile = Join-Path -Path ~ -ChildPath ".latest_profile_version"
$versionRegEx = "# Version (?<version>\d+\.\d+\.\d+)"
if (Test-Path $latestVersionFile) {
@Outek
Outek / winrm_debug.log
Last active March 26, 2018 08:43
Packer_debug
2018/03/23 16:02:11 [INFO] Packer version: 1.2.1
2018/03/23 16:02:11 Packer Target OS/Arch: windows amd64
2018/03/23 16:02:11 Built with Go Version: go1.10
2018/03/23 16:02:11 Using internal plugin for digitalocean
2018/03/23 16:02:11 Using internal plugin for googlecompute
2018/03/23 16:02:11 Using internal plugin for oneandone
2018/03/23 16:02:11 Using internal plugin for parallels-pvm
2018/03/23 16:02:11 Using internal plugin for vmware-iso
2018/03/23 16:02:11 Using internal plugin for amazon-chroot
2018/03/23 16:02:11 Using internal plugin for azure-arm
@Outek
Outek / InstallNodeAppAsWindowsService.ps1
Last active December 1, 2016 12:47 — forked from a5ync/InstallNodeAppAsWindowsService.ps1
Powershell wrapper over NSSM (Non-Sucking Service Manager), to install Node app as a Windows-Service
Function Install-Service {
param(
[Parameter(Mandatory=$true)][string]$NSSMPath,
[Parameter(Mandatory=$true)][string]$serviceName ,
[Parameter(Mandatory=$true)][string]$serviceExecutable ,
[Parameter(Mandatory=$false)][string]$serviceExecutableArgs ,
[Parameter(Mandatory=$false)][string]$serviceAppDirectory,
[Parameter(Mandatory=$false)][string]$serviceDescription
)