Skip to content

Instantly share code, notes, and snippets.

You can manage temporary SSH configurations without touching your ~/.ssh directory at all by using a completely separate temporary directory and leveraging the -F option with ssh along with the GIT_SSH_COMMAND environment variable.

Here's how:

  1. Create a temporary directory outside of ~/.ssh. For example:
mkdir -p /tmp/my_temp_ssh
@timwu-ipevo
timwu-ipevo / ollama_streamlit.md
Last active July 24, 2024 00:12
responsed by llama3.1 8b
>>> create a simple LLM chatbot interface with python package ollama and streamlit.
Here's an example of how to create a simple LLM (Large Language Model) chatbot interface using
the `ollama` library and Streamlit.

Step 1: Install Required Libraries

First, you'll need to install the ollama library and Streamlit. You can do this by running the following command in your terminal:

graph TD
    A[User Query] -->|Entity Description + Embedding| B[Extracted Entities]
    B --> C[Entity-Text Unit Mappings]
    C --> D[Candidate Text Units]
    D --> E[Ranking + Filtering]
    E --> F[Prioritized Text Units]
    F --> G[Response]

 B --> H[Entity-Report Mappings]
@timwu-ipevo
timwu-ipevo / requirements.txt
Created May 26, 2024 00:12
download a tweet's video
requests
tqdm
bs4