Skip to content

Instantly share code, notes, and snippets.

[TestMethod]
public void TestHttpHeaderOperations()
{
// Create functions which return an Action<HttpHeader> function so we can build our "act" sets.
//
// Example:
// new[] {
// add("Content-Type", "application/json")
// delete("Content-Type")
// }
@judwhite
judwhite / coreos-virtualbox.md
Created November 2, 2017 13:04 — forked from noonat/coreos-virtualbox.md
Installing CoreOS on VirtualBox
  • Download and install VirtualBox.
  • Download the CoreOS ISO
  • Create a new VM in VirtualBox
    • For the OS, Other Linux, 64-bit should be fine
    • Give the VM 1gb of memory, like your physical hardware has.
    • Create a disk of whatever size you want. I made a VMDK file that could expand dynamically up to 8gb.
  • Mount the ISO in the VM
    • Right click on the VM and click settings
  • Go to the storage tab
@judwhite
judwhite / api.go
Last active January 13, 2021 07:43
Gorilla Mux Example v1
package main
import (
"encoding/json"
"log"
"net/http"
"github.com/gorilla/mux"
)
@judwhite
judwhite / api.go
Created January 13, 2021 07:36
Gorilla Mux Example v2
package main
import (
"encoding/json"
"log"
"net/http"
"sync"
"time"
"github.com/gorilla/mux"
@judwhite
judwhite / keybase.md
Created May 1, 2021 05:23
keybase.md

Keybase proof

I hereby claim:

  • I am judwhite on github.
  • I am judwhite (https://keybase.io/judwhite) on keybase.
  • I have a public key ASC9jdR309h4OzWQlflZvJEeYciE6lcYTso-NcsO58kjNQo

To claim this, I am signing this object:

@judwhite
judwhite / chat-gpt-dec15-2022-review.md
Last active January 2, 2023 19:50
ChatGPT Dec 15 Version (2022) Review: A know-it-all who simply doesn't.

ChatGPT Dec 15 Version (2022) Review

I wouldn't axe the subject matter experts quite yet.

ChatGPT lays down some solid answers to questions you'd get asked by someone who doesn't really want all the details. It's impressive as a work-in-progress, and a bit scary if your boss see this and immediately starts thinking about ways to reduce OpEx.

Not surprisingly, when you get it out of its comfort zone it attempts to overcompensate with length, spew jargon all over the place, and crank the humbleness up to 11 when you call it out on its bullshit. In other words, it's every smarmy know-it-all you've ever met.

Worst, for me, is how it doesn't adjust the way it presents information when it isn't confident. Whether it's summarizing the main ideas of a well-known topic or hurridly scanning Wikipedia in an attempt to respond quickly, it has the same feel in its response. I can't deal with that. Humans interacting with this thing need a hint about how it feels about its own response so we can establish some kind