Skip to content

Instantly share code, notes, and snippets.

View RichardoC's full-sized avatar

Richard Tweed RichardoC

View GitHub Profile
@RichardoC
RichardoC / unhide-messages.js
Created January 8, 2025 11:50
Unblur old slack messages
// This is probably against Slack's ToS.
// This is only intended for use to rescue old slack messages on public - open source - slack instances
// Run this javascript from the console - provided you're already viewing slack in the browser and opened a slack room you want to read
Array.from(document.getElementsByClassName('c-message_kit__hidden_message_blur')).forEach(el => el.classList.remove('c-message_kit__hidden_message_blur'))
// Here it is as a bookmark. Click this bookmark to unhide the messages
javascript:(function(){Array.from(document.getElementsByClassName('c-message_kit__hidden_message_blur')).forEach(el => el.classList.remove('c-message_kit__hidden_message_blur'))})();
@RichardoC
RichardoC / check_email_dns.py
Created October 23, 2024 13:17
Verify if DMARC, DKIM etc set up properly for Google Workspace
# Before running you'll need to do
# pip3 install dnspython
# Run this script by
# python3 check_email_dns.py yourdomain.example.com
# Generated by chatgpt o1-preview, with a few human tweaks.
import dns.resolver
@RichardoC
RichardoC / download-claude-conversations.sh
Last active October 4, 2024 15:04
Download all claude conversations for an organisation
# Steps for finding the cookies in Firefox
# Open the network tab from hamburger menu -> more tools -> Web Development tools
# Refresh a claude webpage
# Right click on a request to the claude.ai domain
# click "Copy Request headers"
# Put the value of Cookie: in this value
export COOKIE=""
export ORG_ID="" # find by going to <https://claude.ai/projects>, clicking on a project and getting the id from the path e.g. <https://claude.ai/project/RELEVANT_BIT>
export OUTPUT_FILE="/tmp/convos.json"
@RichardoC
RichardoC / github-gpg-key-with-private-email.md
Last active August 8, 2024 10:36 — forked from nitrocode/github-gpg-key-with-private-email.md
Github "Verified" commits using GPG key with private email

Github "Verified" commits using GPG key with private email

It's nice to see a Verified message next to each commit for peace of mind.

Using GPG or S/MIME, you can sign tags and commits locally. These tags or commits are marked as verified on GitHub so other people can be confident that the changes come from a trusted source.

  1. Install latest gpg

    If using a mac use homebrew