Skip to content

Instantly share code, notes, and snippets.

# 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
@wangruohui
wangruohui / intel-nvidia.md
Last active April 25, 2024 10:38
Intel for display, Nvidia for computing

Intel for display, NVIDIA for computing

This guide will show you how to use Intel graphics for rendering display and NVIDIA graphics for CUDA computing on Ubuntu 18.04 / 20.04 desktop.

I made this work on an ordinary gaming PC with two graphics devices, an Intel UHD Graphics 630 plus an NVIDIA GeForce GTX 1080 Ti. Both of them can be shown via lspci | grep VGA.

00:02.0 VGA compatible controller: Intel Corporation Device 3e92
01:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
@aallan
aallan / mac-vendor.txt
Last active April 27, 2024 19:26
List of MAC addresses with vendors identities
000000 Officially Xerox
000001 SuperLAN-2U
000002 BBN (was internal usage only, no longer used)
000003 XEROX CORPORATION
000004 XEROX CORPORATION
000005 XEROX CORPORATION
000006 XEROX CORPORATION
000007 XEROX CORPORATION
000008 XEROX CORPORATION
000009 powerpipes?
@konklone
konklone / 1-government-hsts.rb
Last active May 21, 2018 10:57
Script that detects government domains in Chrome's HSTS preload list.
#!/usr/bin/env ruby
# Script by Eric Mill to detect government domains in the Chrome HSTS Preload list.
#
# The Chrome HSTS Preload list is a hardcoded set of domains for which the browser
# will *only* ever access the site using HTTPS. If an http:// link to that site is
# encountered, the browser will just rewrite the URL to https:// before following
# it.
#
# This list is also incorporated into Firefox and Safari, making it a nice list to