Skip to content

Instantly share code, notes, and snippets.

View aleksandr-kosobokov's full-sized avatar

Aleksandr Kosobokov aleksandr-kosobokov

View GitHub Profile
from gpt_index import SimpleDirectoryReader, GPTListIndex, GPTSimpleVectorIndex, LLMPredictor, PromptHelper
from langchain.chat_models import ChatOpenAI
import gradio as gr
import sys
import os
os.environ["OPENAI_API_KEY"] = 'Свой ключ...'
def construct_index(directory_path):
max_input_size = 4096
@aleksandr-kosobokov
aleksandr-kosobokov / README.md
Created June 16, 2020 13:59 — forked from jmcker/README.md
Visual Basic Scripts for displaying extended network adapter and OS build info via WMI. Compatible with SysInternal's BGInfo.

BGInfo Scripts

Local Script Usage

You can also modify and test run the scripts locally using:

cscript .\network-info.vbs
@aleksandr-kosobokov
aleksandr-kosobokov / PowerShell Customization.md
Last active February 11, 2019 07:37 — forked from jchandra74/PowerShell Customization.md
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts (Настройка коммандной строки)

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@aleksandr-kosobokov
aleksandr-kosobokov / 0_reuse_code.js
Created September 5, 2016 09:39
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console