Skip to content

Instantly share code, notes, and snippets.

View dbrian's full-sized avatar
🏴‍☠️
Arrg.

Brian Gosnell dbrian

🏴‍☠️
Arrg.
View GitHub Profile
@dbrian
dbrian / main.js
Last active February 6, 2023 21:57
Pipe ChatGTP output directly to sh (Don't do this!)
import { ChatGPTAPI } from "chatgpt";
const api = new ChatGPTAPI({
apiKey: process.env.OPENAI_API_KEY
});
// get all command line options
const prompt = process.argv.slice(2).join(" ");
const prefix =

FWIW: I didn't produce the content present here. I've just copy-pasted it from somewhere over the Internet, but I cannot remember exactly the original source. I was also not able to find the author's name, so I cannot give him/her the proper credit.


Effective Engineer - Notes

What's an Effective Engineer?

Keybase proof

I hereby claim:

  • I am dbrian on github.
  • I am dbrian (https://keybase.io/dbrian) on keybase.
  • I have a public key ASBcCXIPaPFbQtqrSvep9FQtUz_QBKKHQzYQPI4SgYEwuQo

To claim this, I am signing this object: