Two bash scripts for searching and listing Claude Code session files.
Search through Claude session content using regex patterns.
Basic Usage:
| # Based on https://github.com/dave1010/tree-of-thought-prompting with wildcard added | |
| # Whild card seems to help drive good answers especially in gpt4 | |
| Imagine three different experts are answering this question. | |
| All experts will write down 1 step of their thinking, then share it with the group. | |
| Then a wild card expert will come in and try to solve the problem by inverting it. Then all experts will go on to the next step until the problem is solved. | |
| Finally the wildcard will check their answer again, in a wild card way. | |
| If any expert realises they're wrong at any point then they backtrack. | |
| Finally, an adjudicator will write the best answer. |
| # Import discord.py. Allows access to Discord's API. | |
| import asyncio | |
| import discord | |
| # Import the os module. | |
| import os | |
| from concurrent.futures import ThreadPoolExecutor | |
| #!/bin/bash | |
| # Check if requirements.txt exists | |
| if [ ! -f "requirements.txt" ]; then | |
| echo "Error: requirements.txt not found." | |
| exit 1 | |
| fi | |
| # Remove existing requirements2.txt if it exists | |
| if [ -f "requirements2.txt" ]; then |
| #!/bin/bash | |
| #https://gist.github.com/jakkaj/218887771f70466e844dcbe082cd2ff6 | |
| if [ -z "$OPENAI_API_KEY" ]; then | |
| echo "The OPENAI_API_KEY environment variable is required and must not be empty." | |
| exit 1 | |
| fi | |
| if ! command -v inotifywait >/dev/null 2>&1; then |
| # MIT License | |
| # Copyright (c) 2019-2022 JetsonHacks | |
| # Using a CSI camera (such as the Raspberry Pi Version 2) connected to a | |
| # NVIDIA Jetson Nano Developer Kit using OpenCV | |
| # Drivers for the camera and OpenCV are included in the base image | |
| import cv2 | |
| import time | |
| import numpy as np |
| ADKAR |
| Copyright (c) 2013 Ross Kirsling | |
| Permission is hereby granted, free of charge, to any person obtaining | |
| a copy of this software and associated documentation files (the | |
| "Software"), to deal in the Software without restriction, including | |
| without limitation the rights to use, copy, modify, merge, publish, | |
| distribute, sublicense, and/or sell copies of the Software, and to | |
| permit persons to whom the Software is furnished to do so, subject to | |
| the following conditions: |
| #from https://github.com/rvoicilas/inotify-tools/wiki | |
| apt-get install inotify-tools | |
| inotifywait -r -m -e close_write ./spark.sh | | |
| while read path _ file; do | |
| echo "$path$file modified" | |
| done |
| alias wcd='. ~/wcd.sh' |