Skip to content

Instantly share code, notes, and snippets.

View aytch's full-sized avatar

Brandon Presley aytch

  • Portland, OR, United States
View GitHub Profile
@aytch
aytch / start-noita.ps1
Created January 22, 2021 00:01 — forked from vexx32/start-noita.ps1
Starts Noita from the given path, optionally with a specific seed set.
function Start-Noita {
<#
.SYNOPSIS
Starts Noita from a PowerShell prompt, optionally with a specific set seed for a new game.
.DESCRIPTION
To use this function, copy and paste the complete function definition into a PowerShell
session, and then invoke it with `Start-Noita`. Supply `-Seed somevalue` if you would like
to run a specific seed (see the examples below).
@aytch
aytch / workaround.md
Created June 7, 2019 15:21 — forked from cheeseplus/workaround.md
Chef Infra License Errors in Test-kitchen and Packer

If you're getting errors like:

       +---------------------------------------------+
            Chef License Acceptance
       
       Before you can continue, 2 product licenses
       must be accepted. View the license at
       https://www.chef.io/end-user-license-agreement/
       
@aytch
aytch / gist:4559696
Last active December 11, 2015 06:29 — forked from anonymous/gist:4559621
#requires -version 2.0
# handy global variables
$GLOBAL:SMADLL = ([appdomain]::CurrentDomain.getassemblies()|?{$_.location -match "System.Management.Automation.dll"}).location
# $GLOBAL:SMDIR = (Get-ItemProperty 'hklm:/software/microsoft/System Center/2010/Service Manager/Setup').InstallDirectory
# $GLOBAL:SMSDKDIR = "${SMDIR}\SDK Binaries"
# $GLOBAL:SMDLL = "${SMSDKDIR}/Microsoft.EnterpriseManagement.Core.dll"
$GLOBAL:EMGTYPE = "Microsoft.EnterpriseManagement.EnterpriseManagementGroup"
$GLOBAL:DATAGENDIR = "$psScriptRoot\DataGen"
$GLOBAL:SMDEFAULTCOMPUTER = "US-DC-SCSM-01"