Skip to content

Instantly share code, notes, and snippets.

@johnconnor-sec
johnconnor-sec / README.md
Last active January 7, 2025 06:24
A simple tool to make requests to `https://r.jina.ai/` or `https://s.jina.ai/` URLs based on user input

README.md

Example Usage:

Reader

❯ jina -r https://example.com
Title: Example Domain

URL Source: https://example.com/

Fabric - Recursive

This Python script is designed to process files in a specified input directory and its sub directories, process their content using https://github.com/danielmiessler/fabric, and save the results to an output directory. Below is a breakdown of its functionality, key components, and how to use it.

Usage

To run the script, you need to have Python 3 installed along with the fabric command-line tool. You can execute the script from the command line with the following syntax:

python3 script_name.py <input_dir> <output_dir> [options]
@johnconnor-sec
johnconnor-sec / cleardocker.sh
Created January 7, 2025 05:57
Gets rid off everything docker is hosting
#!/bin/bash
# Stop and remove all containers
if [ "$(sudo docker ps -aq)" ]; then
sudo docker stop $(sudo docker ps -aq)
sudo docker rm $(sudo docker ps -aq)
fi
# Remove all images
if [ "$(sudo docker images -q)" ]; then
@johnconnor-sec
johnconnor-sec / contemplative-llms.txt
Created January 7, 2025 05:49 — forked from Maharshi-Pandya/contemplative-llms.txt
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@johnconnor-sec
johnconnor-sec / code-editor-rules.md
Created January 7, 2025 05:47 — forked from yifanzz/code-editor-rules.md
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
@johnconnor-sec
johnconnor-sec / fabric_batch_process.py
Last active October 1, 2024 06:02
Using `danielmiessler/fabric` Project to Batch Process Files
#!/usr/bin/python3
import os
import subprocess
import sys
import argparse
import logging
from concurrent.futures import ThreadPoolExecutor
def read_file_content(input_filepath):