Skip to content

Instantly share code, notes, and snippets.

View jakenvac's full-sized avatar
🧙‍♂️

Jake Langford jakenvac

🧙‍♂️
View GitHub Profile
@jakenvac
jakenvac / profile.ps1
Created February 3, 2019 18:05
Custom Powershell Profile for prompt, aliases etc.
# Variables
$src = "~/source"
# Aliases
Set-Alias -Name winbash -Value 'C:\Program Files\Git\bin\bash.exe'
function reboot {
shutdown -r -t 0
}
@jakenvac
jakenvac / debug-attach.ps1
Last active July 25, 2018 11:07
workaround for vs-code go #219 modified version of KingRikkie to check for build failures
$EXECUTABLE_NAME = "crump8term"
$EXECUTABLE_PATH = ".\$EXECUTABLE_NAME"
$GoPath = ((go env | Select-String -Pattern "GOPATH=" | Out-String) -split "=")[1].TrimEnd()
$GoPath += "\bin"
Set-Location $EXECUTABLE_PATH
go build -gcflags "-N -l"
if($LastExitCode -eq 0) {
Write-Output 'build success'
} else {
Write-Error 'go build failed'