A Docker Compose stack for running local LLMs on your own hardware with NVIDIA GPU acceleration, a web UI, and one-command model setup via profiles.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import time | |
| import os | |
| import sys | |
| import openai | |
| import tiktoken | |
| from termcolor import colored | |
| openai.api_key = open(os.path.expanduser('~/.openai')).read().strip() |
This is running on Linux Mint
- Install ffmpeg
sudo apt-get install ffmpeg
- A simple test: open two terminals, in first run
ffplay udp://127.0.0.1:23000and in the secondffmpeg -i sample.mp4 -vcodec mpeg4 -f mpegts udp://127.0.0.1:23000. This should play the videosample.mp4although the quality is rather blocky.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -------- DVR e Mibo Smart Intelbras ------------------------------------------------------- | |
| rtsp://usuário:senha@ip:porta/cam/realmonitor?channel=1&subtype=0 | |
| Ps minha mibo smart im4c só funcionou com esse link: | |
| rtsp://admin:chave de acesso@ip:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif | |
| -------- Luxvision ------------------------------------------------------- | |
| rtsp://ip:porta/user=[usuário]&password=[senha]&channel=1&stream=0.sdp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "namespace": "CloudEvents", | |
| "type": "record", | |
| "name": "Event", | |
| "fields": [ | |
| {"name": "cloudEventsVersion", "type": "string", "doc": "The version of the CloudEvents specification which the event uses. This enables the interpretation of the context."}, | |
| {"name": "eventType", "type": "string", "doc": "Type of the event data. Producers can specify the format of this, depending on their service. This enables the interpretation of data, and can be used for routing, policy and more."}, | |
| {"name": "eventTypeVersion", "type": ["null", "string"], "doc": "The version of the event-type. This enables the interpretation of data by eventual consumers, requires the consumer to be knowledgeable about the producer."}, | |
| {"name": "source", "type": "string", "doc": "This describes the event producer. Often this will include information such as the type of the event source, the organization publishing the event, and some unique idenfitiers. The exact syntax and semantics behind the data encoded in the URI is e |
- Use
curlto get the JSON response for the latest release - Use
grepto find the line containing file URL - Use
cutandtrto extract the URL - Use
wgetto download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| ## NOTE! OpenConnect is now on Version 8, and this is only for historical use | |
| ## See https://gist.github.com/darrenpmeyer/1a56d0d4817352998fe9d7cfe5a79684 for new script | |
| oc_ver="7.08" | |
| echo "Autobuild OpenConnect $oc_ver" | |
| echo " " | |
| echo "This script uses apt-get and make install via sudo rights" | |
| echo "To simplify this, we're going to use sudo -v to pre-authenticate you" |
NewerOlder
