Skip to content

Instantly share code, notes, and snippets.

View 0wwafa's full-sized avatar

Robert Sinclair 0wwafa

  • Italy / UK / Egypt
View GitHub Profile
@0wwafa
0wwafa / PRINT_CLAUDE.md
Last active July 23, 2024 11:56
Print / Export Claude Chat

Go to https://claude.ai/chat/new (or any other chat you had in the past).

Then run this code:

function printClaude() {   // (C) 2024 by ZeroWw. If you use this code, just give me some credit.

    const centralPart = document.getElementsByClassName('mb-1 mt-1')[1].parentElement.parentElement.parentElement.parentElement;

    if (centralPart) {
        // Create a new window for printing
@alexradzin
alexradzin / selftar.sh
Last active September 18, 2024 15:36
Script that creates self extracting executable script from tar.gz file.
#!/bin/sh
if [ $# -eq 0 ]; then
echo "This script creates self extractable executable"
echo Usage: $0 TAR.GZ [COMMAND]
exit;
fi
if [ $# -gt 0 ]; then
TAR_FILE=$1