Skip to content

Instantly share code, notes, and snippets.

View otrishyn's full-sized avatar

Oleksii Trishyn otrishyn

View GitHub Profile
# Install CUDA runtime from https://docs.nvidia.com/cuda/wsl-user-guide/index.html
# Install pyenv from https://bgasparotto.com/install-pyenv-ubuntu-debian
# Clone the repo
git clone https://github.com/imartinez/privateGPT
cd privateGPT
# Install Python 3.11
pyenv install 3.11
pyenv local 3.11
@otrishyn
otrishyn / setup_selenium.sh
Created May 25, 2016 07:17 — forked from curtismcmullan/setup_selenium.sh
Setup Selenium Server on Ubuntu 14.04
#!/bin/bash
# Following the guide found at this page
# http://programmingarehard.com/2014/03/17/behat-and-selenium-in-vagrant.html
echo "\r\nUpdating system ...\r\n"
sudo apt-get update
# Create folder to place selenium in
@otrishyn
otrishyn / fix-hipchat.sh
Last active August 29, 2015 14:27 — forked from dgertych-monterail/fix-hipchat.sh
Get random HipChat IP and modify /etc/hosts
#!/usr/bin/env bash
set -e
rand() {
printf $(( $1 * RANDOM / 32767 ))
}
rand_element () {
local -a th=("$@")
unset th[0]