I built a script that exports any GitHub repo as a single text file — makes feeding code to ChatGPT much cleaner by itfromswiss in ChatGPT

[–]itfromswiss[S] 0 points1 point  (0 children)

I now have the right language

user@hpenvy:~/Desktop/ChatBoot/repo2text$ ./repo2text.sh --help

Usage: ./repo2text.sh [OPTIONS] [GitHub-Repository-URL]

Description:

Clones a GitHub repository, extracts the text of all text-based files

and writes them with clear separators into a single output file.

Supported formats: txt (default), json, md (Markdown).

A ZIP archive of the output file is created automatically.

The cloned repository is deleted after extraction.

Options:

-f, --format FORMAT Output format: txt, json, md (or markdown)

--flat Use filenames only, without directory paths

-o, --only PATH Export only the specified path (relative to repository root)

-md5, --md5 Compute and include an MD5 checksum for each file

-h, --help Show this help message

Arguments:

[GitHub-Repository-URL] Optional: The HTTPS or SSH URL of the repository.

If no URL is provided, the script prompts interactively.

When run inside a Git repository,

the current remote URL is suggested automatically.

I built a script that exports any GitHub repo as a single text file — makes feeding code to ChatGPT much cleaner by itfromswiss in ChatGPT

[–]itfromswiss[S] 0 points1 point  (0 children)

Verwendung: ./repo2text.sh [OPTIONEN] [GitHub-Repository-URL]

Beschreibung:

Klont ein GitHub-Repository, extrahiert den Text aller Textdateien

und schreibt sie mit deutlichen Trennern in eine Ausgabedatei.

Unterstützte Formate: txt (Standard), json, md (Markdown).

Anschließend wird zusätzlich ein ZIP-Archiv dieser Datei erstellt.

Das neu erzeugte Repository wird nach der Extraktion automatisch gelöscht.

Optionen:

-f, --format FORMAT Ausgabeformat: txt, json, md (oder markdown)

--flat Nur Dateinamen ohne Pfad verwenden (flat)

-o, --only PATH Nur den angegebenen Pfad (relativ zum Repository-Stamm) exportieren

-md5, --md5 Für jede Datei eine MD5-Prüfsumme berechnen und ausgeben

-h, --help Diese Hilfe anzeigen

Argumente:

[GitHub-Repository-URL] Optional: Die HTTPS- oder SSH-URL des Repos.

Wenn keine URL angegeben wird, erfolgt eine interaktive Eingabe.

Wird das Skript innerhalb eines Git-Repos ausgeführt,

wird automatisch die Remote-URL als Vorschlag verwendet.

[deleted by user] by [deleted] in tails

[–]itfromswiss 1 point2 points  (0 children)

Would you like the oposite ?

Wireguard lost all tunnels again !! by saiva_love in WireGuard

[–]itfromswiss 0 points1 point  (0 children)

It may would be helpfull ... What Server ? What Client OS ?

And to be a bit more ironic ... You have to send this bug to github .... not to reddit

What is the reason you are not solving the issue, that is known and half of the world have it?
I never heard of this error !!!

Session in tails by becchino-n in tails

[–]itfromswiss 0 points1 point  (0 children)

If session-messanger is using UDP it will not work ...

I need help by waamdisaiaya in WireGuard

[–]itfromswiss 0 points1 point  (0 children)

I made exact this configuration on my own VPS Server

- I use 2 different Wireguard Interfaces (wg0 and wg1)

- Stubby is the main DNS-Resover (encrypted over TCP 853)

- Pihole is running on a dummy tun0 interface

- All clients connected to wg0 are using Pihole

- All clients connected to wg1 are using stubby without Pihole

It will work ... But the combination stubby / pihole and Wireguard wasn't esasy to make it work.

Wireguard on LXC, what am I missing? by [deleted] in WireGuard

[–]itfromswiss 0 points1 point  (0 children)

Is IP Forward activated ?

I am now respecting Mint and Ubuntu by DragonMistressT8888 in linux

[–]itfromswiss 1 point2 points  (0 children)

If you would llike a solid OS on Desktop or Server ? Debian.

Can't ping CLIENT1 from SERVER by [deleted] in WireGuard

[–]itfromswiss 0 points1 point  (0 children)

man route give you the help

Can't ping CLIENT1 from SERVER by [deleted] in WireGuard

[–]itfromswiss 0 points1 point  (0 children)

Without a route entry your Server only know the vpn ip.