Skip to content

Instantly share code, notes, and snippets.

how_to_quary_a_repo

goal is to pass a git repo to the LLM so it can consume and we can quary it.
we will use a cli tool called llm
and an auxiliry tool called files-to-prompt from same auther

install

install llm

pip install llm 
llm install llm-openrouter 
@5shekel
5shekel / howtorunpod.md
Created April 6, 2024 18:12
connect to runpod notebook kernel

map remote port 8888 to localhost
ssh [email protected] -p 22408 -i ~/.ssh/id_ed25519 -L 8888:localhost:8888
grab the jupyter passwrod from runpod
JUPYTER_PASSWORD=qi14ld6tw7h4ino5fwh
set the local kernel to "exsiting one", then refer it to this url
http://localhost:8888/lab?token=qi14ld6g7h4ino56cwh

full thing here, but its a bit outdated

@5shekel
5shekel / openDevin-on-wsl.md
Last active April 27, 2024 15:22
install openDevin on WSL

install openDevin on windows wsl

all this inside your WSL ubuntu shell.

have python (3.11+)

check

python --version
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@5shekel
5shekel / check4jupy.ps1
Created September 24, 2023 06:08
sample script you can use in PowerShell to iterate over all Conda environments and check if Jupyter and PyTorch are installed:
$condaenvs = (conda env list | Out-String) -split "`n"
foreach ($condaenv in $condaenvs) {
$name = $condaenv.Split(' ')[0]
if ($name -ne "" -and $name -ne "#") {
Write-Output "================================================================"
Write-Output "Environment: $name"
Write-Output "`nChecking for Jupyter:"
& cmd /c "call activate $name && jupyter --version"
# an LLM attempt at an https://noisio.de/boards/levitation-oscillator
import streamlit as st
import numpy as np
from pydub import AudioSegment
from pydub.playback import play
import tempfile
def generate_sine_wave(frequency, amplitude, phase, duration, sample_rate):
t = np.linspace(0, duration, int(sample_rate * duration), endpoint=False)
@5shekel
5shekel / DWpose-controlnet-streamlit.py
Last active September 3, 2023 23:30
demo controlnet dwpose
import streamlit as st
import json
import base64
import requests
from PIL import Image
import os, io
output_folder = "../output"
if not os.path.exists(output_folder):

User

we will build an index for an academic book . attached is an excel with the terms

follow this guideline between the three ### lines

INTRODUCTION: WORKING WITH T&F

@5shekel
5shekel / scrapeImages.py
Created June 9, 2023 16:07 — forked from genekogan/scrapeImages.py
scraping full size images from Google Images
from bs4 import BeautifulSoup
import requests
import re
import urllib2
import os
import argparse
import sys
import json
# adapted from http://stackoverflow.com/questions/20716842/python-download-images-from-google-image-search