Skip to content

Instantly share code, notes, and snippets.

View dstpierre's full-sized avatar

Dominic St-Pierre dstpierre

View GitHub Profile
@dstpierre
dstpierre / DLLLoader.cs
Created September 30, 2018 11:43
Prototype call C# methods from Go using stdin/stdout and a C# wrapper around the libraries
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Your.Library.Here;
namespace ProtoDLLBridge
@dstpierre
dstpierre / vm.go
Last active June 7, 2017 12:09
Spinning a new DigitalOcean droplet, running a bash file that copy a Go binary and execute this binary on the new droplet and destroy the droplet via Go code
package main
import (
"context"
"fmt"
"io/ioutil"
"log"
"os"
"os/exec"
"path/filepath"