Skip to content

Instantly share code, notes, and snippets.

View coreybutler's full-sized avatar
⏱️
Working on Author (Runtime, Journal)

Corey Butler coreybutler

⏱️
Working on Author (Runtime, Journal)
View GitHub Profile
@coreybutler
coreybutler / main.go
Created August 12, 2023 20:38 — forked from KatelynHaworth/main.go
Example of run an interactive process on the current user from system service on windows (Golang)
package main
import (
"github.com/kardianos/service"
"log"
"flag"
)
type Service struct {}
@coreybutler
coreybutler / notifyAddrChange.go
Created August 12, 2023 20:38 — forked from KatelynHaworth/notifyAddrChange.go
A simple go program leveraging the Window API to listen for IPv4 network address change events
package main
import (
"log"
"syscall"
"unsafe"
"golang.org/x/sys/windows"
)
@coreybutler
coreybutler / tls-client.go
Created September 13, 2021 04:45 — forked from michaljemala/tls-client.go
SSL Client Authentication Golang sample
package main
import (
"crypto/tls"
"crypto/x509"
"flag"
"io/ioutil"
"log"
"net/http"
)