Skip to content

Instantly share code, notes, and snippets.

View jordanorelli's full-sized avatar
🎴

Jordan Orelli jordanorelli

🎴
View GitHub Profile
package main
import (
"html/template"
"log"
"net/http"
// "sync"
// "unsafe"
)

Keybase proof

I hereby claim:

  • I am jordanorelli on github.
  • I am jorelli (https://keybase.io/jorelli) on keybase.
  • I have a public key ASDrTx8HP8H-wj_Cbgw7rWUq1v5TgFSMt-ksvQJcmE8CyQo

To claim this, I am signing this object:

=== RUN TestStores
=== RUN TestStores/pg
=== RUN TestStores/pg/devices
=== RUN TestStores/pg/devices/create_pending
=== RUN TestStores/pg/devices/create_accepted
=== RUN TestStores/pg/devices/create_rejected
=== RUN TestStores/pg/devices/unknown_status
=== RUN TestStores/pg/devices/fictional_status
=== RUN TestStores/pg/devices/hostname
=== RUN TestStores/pg/devices/hostname_and_username
=== RUN TestStores
=== RUN TestStores/pg
=== RUN TestStores/pg/devices
=== RUN TestStores/pg/devices/create_pending
=== RUN TestStores/pg/devices/create_accepted
=== RUN TestStores/pg/devices/create_rejected
=== RUN TestStores/pg/devices/unknown_status
=== RUN TestStores/pg/devices/fictional_status
=== RUN TestStores/pg/devices/hostname
=== RUN TestStores/pg/devices/hostname_and_username
=== RUN TestStores
=== RUN TestStores/pg
=== RUN TestStores/pg/devices
=== RUN TestStores/pg/devices/create_pending
=== RUN TestStores/pg/devices/create_accepted
=== RUN TestStores/pg/devices/create_rejected
=== RUN TestStores/pg/devices/unknown_status
=== RUN TestStores/pg/devices/fictional_status
=== RUN TestStores/pg/devices/hostname
=== RUN TestStores/pg/devices/hostname_and_username
@jordanorelli
jordanorelli / procwatch.go
Created December 17, 2016 17:00
watch process creation and termination on windows
package main
import (
"fmt"
"time"
"os"
"sort"
"io"
"syscall"
"unicode/utf16"
@jordanorelli
jordanorelli / ps.go
Created December 17, 2016 05:02
list running processes on windows via kernel32.dll and CreateToolhelp32Snapshot
package main
import (
"fmt"
"syscall"
"unicode/utf16"
"unsafe"
)
const invalidHandle = ^uintptr(0)
package main
import (
"time"
"net/http"
)
func panicLater() {
time.Sleep(time.Second)
panic("we dead now")
package main
import (
"fmt"
"net/http"
)
type handler struct {
shared string
}
@jordanorelli
jordanorelli / z.c
Created December 12, 2016 05:54
minimum viable cgo with a header file
int from_c() {
return 12;
}