Skip to content

Instantly share code, notes, and snippets.

@abutbul
abutbul / llm_txt_index_downloader.py
Last active June 30, 2025 13:23
The llms.txt convention defines a simple format for exposing LLM-ready documentation. GitBook now automatically publishes this for supported projects, enabling easier integration with RAG pipelines. A growing index of public llms.txt files allows for scalable discovery and ingestion of structured sources. A small script is available to fetch all…
#
# LLMs.txt Documentation Scraper for RAG
#
# Author: David Abutbul
# GitHub: https://github.com/abutbul
# Date: June 30, 2025
#
# Description:
# This script is a utility designed to streamline the data ingestion phase of
# Retrieval-Augmented Generation (RAG) development. It helps users who need
import traceback
import logging
import sys
import os
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_ollama.chat_models import ChatOllama
from langchain_deepseek import ChatDeepSeek
from fastapi import FastAPI, HTTPException, Request
from fastapi.responses import JSONResponse
# Clone the repository
git clone https://github.com/base44dev/i-gaming-insight-f6c3b3fd.git
# Navigate into the project directory
cd i-gaming-insight-f6c3b3fd
# Remove the existing origin
git remote remove origin
# Add the new origin URL
/sbbs/exec/ircd.js compiled in 0.00 seconds
SynchronetIRCd-1.9 started.
Trying to read configuration from: /sbbs/ctrl/ircd.conf
!IRCd ERROR -9 calling getaddrinfo() on ::
!Error Error: Unable to add host to socket set creating listening socket on port 6667
/sbbs/exec/ircd.js executed in 0.10 seconds
!Module (ircd) set exit_code: 1
1. Create a backup of nx PAM configuration (sudo cp -a /etc/pam.d/nx /etc/pam.d/nx.original). Then change /etc/pam.d/nx in this way:
auth include system-login
account include system-login
password include system-login
session include system-login
2. Change DefaultDesktopCommand in /usr/NX/etc/node.cfg in order to remove dbus-launch –exit-with-session:
DefaultDesktopCommand "startkde"
@abutbul
abutbul / remount.sh
Created October 22, 2019 07:24 — forked from ertseyhan/remount.sh
Temporarily increase size of tmp folder on Arch linux
#!/bin/bash
sudo mount -o remount,size=10G,noatime /tmp
echo "Done. Please use 'df -h' to make sure folder size is increased."
@abutbul
abutbul / pollfido.sh
Created July 23, 2018 21:48
Fido Polling script for multiple nodes - Mystic BBS 1.12 A39+
#!/usr/bin/bash
# About:
# I use this script to eliminate the long line of chained fidopoll commands in my Poll event
# But with minimal adaptations this could be what ever you want it to be.
# Instructions:
# Place this script in your mystic folder and change your fido polling event to call ./pollfido.sh instead of ./fidopoll 1:1/1
# Please notice that you will still want to chain in ./mutil mailin after this script is done via the evnets editor
# since I am not calling it with-in this script. (you could easily add it after 'done' if you wish to call it from this script)
@abutbul
abutbul / tmux-cheatsheet.markdown
Created October 11, 2016 09:58 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname