Skip to content

Instantly share code, notes, and snippets.

View Talismanic's full-sized avatar

Mohammed Mehedi Hasan Talismanic

View GitHub Profile
@Talismanic
Talismanic / search-agent.md
Last active November 11, 2024 00:59
Building search agent with camel-ai with the steps shown in camel-ai's tutorial docs.

Install Framework Dependencies

!pip install "camel-ai[all]==0.2.8"

!pip install 'camel-ai[tools]'

Define Behavior

sys_msg = `You are an avid searcher who can search and find anything on internet. You present the data in concise manner from your search result. At the end of your presentation, you add your life philosophy with the answer.`
@Talismanic
Talismanic / installation_steps.md
Created November 5, 2024 20:23
Running Llama3.2 with Ollama and Open WebUI

Run Ollama Docker

docker run -d -v /my/ollama/local/directory:/root/.ollama -p 11434:11434 --name my-ollama ollama/ollama

Run Open-WebUI for Ollama

docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main

Download and run llama3.2

@Talismanic
Talismanic / x-509-sample.py
Last active September 1, 2023 16:55
Sample_Implementation_Of_X_509
#generating certificate and private key
from cryptography import x509
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization, hashes
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.x509.oid import NameOID
import datetime
# Generate Private Key