Skip to content

Instantly share code, notes, and snippets.

View LiamDGray's full-sized avatar

Liam Gray LiamDGray

View GitHub Profile
@mberman84
mberman84 / main.py
Created November 10, 2023 16:17
OpenChat Code
import requests
import json
import gradio as gr
url = "http://localhost:11434/api/generate"
headers = {
'Content-Type': 'application/json',
}
# Clone the repo
git clone https://github.com/imartinez/privateGPT
cd privateGPT
# Install Python 3.11
pyenv install 3.11
pyenv local 3.11
# Install dependencies
poetry install --with ui,local
git clone https://github.com/cpacker/MemGPT.git
conda create -n memgpt python=3.10
conda activate memgpt
cd memgpt
pip install -r requirements.txt
export OPENAI_API_KEY="YOUR_API_KEY"
# download .txt docs from: https://huggingface.co/datasets/MemGPT/example-sec-filings/tree/main
# place in "memgpt/personas/examples/preload_archival/*.txt"
python3 main.py --archival_storage_files_compute_embeddings="memgpt/personas/examples/preload_archival/*.txt" --persona=memgpt_doc --human=basic
import autogen
config_list = [
{
'model': 'gpt-4',
'api_key': 'API_KEY'
}
]
llm_config={
@oliverspryn
oliverspryn / chatgpt-prompt.txt
Last active March 20, 2025 13:50
A prompt for ChatGPT used to build ToDo GPT for Android using Jetpack Compose
I am going to build an native Android app using Kotlin and Jetpack Compose. I already have a new project created in Android Studio but would like your help for the rest. I don't have any screens, just an empty activity with a setContext() function inside of it, ready for Jetpack Compose to take over. My next prompt will explain what the app is for and what I want it to do.
This app should be a todo list app. It should have the following features:
- One screen with a list of all of your tasks.
- That screen should have an empty state saying "No Tasks" when there aren't any tasks stored in the app.
- The screen should have a FAB that allows you to add a new task to that list.
@Gavinok
Gavinok / chatgpt.el
Last active February 15, 2026 20:55
chatgpt client for emacs WIP (Now Async!)
;;; chatgpt.el --- Simple ChatGPT frontend for Emacs -*- lexical-binding: t -*-
;; Copyright (C) Gavin Jaeger-Freeborn
;; This package is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;; This package is distributed in the hope that it will be useful,

Image captioning and Object detection add-ons for NVDA

GSoC 2020 | NV ACCESS | Shubham Dilip Jain

Final Report

Sample output produced using the object detection add-on, featuring the result "The image contains people, a dog, and a backpack." as embedded text and coloured boxes drawn around each of these objects in the image.

Introduction

The internet today is rich in image-content, from entire websites like Instagram and Pinterest dedicated to curating and displaying images, to Facebook and Reddit that have large amounts of content in image form. Non-visual users find it challenging to navigate and use these websites for their intended purpose. The information in images, whether on the internet or stored locally, is also inacc

@LiamDGray
LiamDGray / tasker_forward_SMS.js
Created March 10, 2022 21:21 — forked from IcedMango/tasker_forward_SMS.js
How to use tasker forward SMS to telegram
//bot秘钥
var apiKey = "";
//请求链接
var apiUrl = "api.telegram.org";
//会话ID
var chatId = "";
//发件人名称
var senderName = global('SMSRN');
if (senderName.match(/\d*/g)[0].length > 0) {
senderName = "";

Image captioning and Object detection add-ons for NVDA

GSoC 2020 | NV ACCESS | Shubham Dilip Jain

Final Report

Sample output produced using the object detection add-on, featuring the result "The image contains people, a dog, and a backpack." as embedded text and coloured boxes drawn around each of these objects in the image.

Introduction

The internet today is rich in image-content, from entire websites like Instagram and Pinterest dedicated to curating and displaying images, to Facebook and Reddit that have large amounts of content in image form. Non-visual users find it challenging to navigate and use these websites for their intended purpose. The information in images, whether on the internet or stored locally, is also inacc

@applch
applch / macOS Catalina GPU kext
Created February 5, 2020 02:50
macOS 10.15.3 Catalina GPU kext
### AMD7000Controller.kext
* pci device: 6780 - Tahiti XT GL [FirePro W9000]
* pci device: 6790 - unknown device
* pci device: 6798 - Tahiti XT [Radeon HD 7970/8970 OEM / R9 280X]
* pci device: 679a - Tahiti PRO [Radeon HD 7950/8950 OEM / R9 280]
* pci device: 679e - Tahiti LE [Radeon HD 7870 XT]
* pci device: 6800 - Wimbledon XT [Radeon HD 7970M]
* pci device: 6801 - Neptune XT [Radeon HD 8970M]
* pci device: 6806 - Neptune
* pci device: 6808 - Pitcairn XT GL [FirePro W7000]