Skip to content

Instantly share code, notes, and snippets.

View geoffappleford's full-sized avatar

Geoff Appleford geoffappleford

  • Nottingham Road, South Africa
View GitHub Profile
@geoffappleford
geoffappleford / Program.cs
Created August 14, 2018 03:43 — forked from analogrelay/CommandLineException.cs
Easy way to debug command-line apps
private static int Main(string[] args)
{
#if DEBUG
if (args.Any(a => a == "--debug"))
{
args = args.Where(a => a != "--debug").ToArray();
Console.WriteLine($"Ready for debugger to attach. Process ID: {Process.GetCurrentProcess().Id}.");
Console.WriteLine("Press ENTER to continue.");
Console.ReadLine();
}
#!/bin/bash
set -e
GVERSION="1.8"
GFILE="go$GVERSION.linux-amd64.tar.gz"
GOPATH="$HOME/go"
GOROOT="/usr/local/go"
if [ -d $GOROOT ]; then
echo "Installation directories already exist $GOROOT"
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco install 7zip /y
choco install adobereader /y
choco install arduino /y
choco install azure-cli /y
choco install chocolatey /y
choco install chocolatey-core.extension /y
choco install docker-for-windows /y
choco install firefox /y