Skip to content

Instantly share code, notes, and snippets.

@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

@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 / 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 / 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 / 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
[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 / CredentialManager.cs
Created July 7, 2016 04:01 — forked from meziantou/CredentialManager.cs
Using the Windows Credential API (CredRead, CredWrite, CredDelete, CredEnumerate)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Text;
using Microsoft.Win32.SafeHandles;
public static class CredentialManager
{
public static Credential ReadCredential(string applicationName)
@judwhite
judwhite / build.cake
Created June 23, 2016 16:43
psake: Example cake file
//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
//////////////////////////////////////////////////////////////////////
// PREPARATION
//////////////////////////////////////////////////////////////////////
@judwhite
judwhite / productions.go
Created June 2, 2016 13:13
Mathematical Productions with order of operations and avoiding left tail recursion
func addMathProductions() {
// expr -> expr + term
// | expr - term
// | term
//
// rewritten:
// expr -> term restAdd
addProduction(expr,
rules{
{term, restAdd},
@judwhite
judwhite / gofmt.xml
Last active March 31, 2016 11:57
IntelliJ - gofmt on save, except autosave
<?xml version="1.0" encoding="UTF-8"?>
<TaskOptions>
<TaskOptions>
<option name="arguments" value="-w $FilePath$" />
<option name="checkSyntaxErrors" value="true" />
<option name="description" value="Run gofmt after saving go file" />
<option name="exitCodeBehavior" value="ERROR" />
<option name="fileExtension" value="go" />
<option name="immediateSync" value="false" />
<option name="name" value="Gofmt" />