Skip to content

Instantly share code, notes, and snippets.

@KeeganEad
KeeganEad / gpt-code-joiner.js
Last active March 26, 2023 21:09
It's useful to give ChatGPT examples of your existing codebase. This is a hassle if your code is modular and you want to show code from many files and directories. This little javascript gist will let you quickly assemble a single formatted file with code from multiple files. Making it easier to just copy and paste. Be careful to avoid including…
const fs = require('fs');
const path = require('path');
const rootDir = ''; // Replace with your project root directory
const outputFilePath = './joined_code.txt'; // give the output file a location and name.
const whitelist = [
'file-1.tsx',
'file-2.graphql',
]; // Replace with the list of file names you want to join.
@KeeganEad
KeeganEad / YT_500error.txt
Created June 16, 2017 13:05
YouTube.com 500 internal server error
500 Internal Server Error
Sorry, something went wrong.
A team of highly trained monkeys has been dispatched to deal with this situation.
If you see them, send them this information as text (screenshots frighten them):
APCGX7qVWFghoOiKJ43WTQsCFkeW0j1HMp2BXhehaZ54Hoc2qzK8Y8Ir
3BJchBB7rRbW_s0ikwlTAgebxoLvym8uxVf6cgfOOn4GHfwEkXKkWeHV
sJubI62gIXptDmGPg7w1DVGO-umKTmz7kspDhSorH4201J3I1U0d4WKN

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: