Skip to content

Instantly share code, notes, and snippets.

View Preston-Landers's full-sized avatar

Preston Landers Preston-Landers

View GitHub Profile
@Preston-Landers
Preston-Landers / ChatGPT print hack.md
Last active May 25, 2023 18:39
Tweak ChatGPT CSS to allow better printing of the conversation

ChatGPT print hack

If you want to print a conversation (or PDF) from ChatGPT, as of this writing the CSS makes it cut off everything after the first page.

Here's a simple little hack to enable printing the entire conversation.

Open the Javascript Console (Ctrl-Shift-J) or Developer Tools (Ctrl-Shift-I). Make sure the focus is on the console prompt >.

Paste and run this:

@bmhatfield
bmhatfield / .profile
Last active June 18, 2024 09:38
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else