Skip to content

Instantly share code, notes, and snippets.

Avatar
☀️
🐕 🐩 🏃

Jake Langford JakeHL

☀️
🐕 🐩 🏃
View GitHub Profile
@JakeHL
JakeHL / profile.ps1
Created Feb 3, 2019
Custom Powershell Profile for prompt, aliases etc.
View profile.ps1
# Variables
$src = "~/source"
# Aliases
Set-Alias -Name winbash -Value 'C:\Program Files\Git\bin\bash.exe'
function reboot {
shutdown -r -t 0
}
@JakeHL
JakeHL / debug-attach.ps1
Last active Jul 25, 2018
workaround for vs-code go #219 modified version of KingRikkie to check for build failures
View debug-attach.ps1
$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'
You can’t perform that action at this time.