Skip to content

Instantly share code, notes, and snippets.

@nashid
nashid / conda-env-management.md
Last active February 23, 2024 02:29
conda managing environment
  1. Create conda environment:

If you are creating a new environment, use the following commands:

conda create --name new-env python=3.11
conda activate new-env

If you are using an existing environment, use the following command:

@nashid
nashid / claude-models.md
Created February 16, 2024 05:37
Anthropic claude model offerings
Models Context Window Price per 1,000 input tokens Price per 1,000 output tokens
Claude Instant 100k $0.00080 $0.00240
Claude v2 100k $0.00800 $0.02400
Claude v2.1 200k $0.00800 $0.02400
@nashid
nashid / install-nvm-zsh.txt
Created December 1, 2023 05:09 — forked from mike-casas/install-nvm-zsh.txt
install nvm on mac with zsh shell
After install zsh
- brew update
- brew install nvm
- mkdir ~/.nvm
after in your ~/.zshrc or in .bash_profile if your use bash shell:
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
@nashid
nashid / file-path-in-finder.md
Created August 15, 2023 08:16
Show file path in the mac finder

How do I get the full path for a file in finder?

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
then
killall Finder

This will display the full path in the titlebar.

![path][1]

@nashid
nashid / conda-commands.md
Last active July 27, 2023 06:08
conda-commands

create environment

conda create -n <environment-name> --file environment.txt

export environment

conda list -e > environment.txt
@nashid
nashid / public-repo-private.md
Created July 20, 2023 22:34
GitHub: How to make a fork of public repository private?

Create a new repo (let's call it private-repo) via the Github UI. Then:

git clone --bare https://github.com/exampleuser/public-repo.git
cd public-repo.git
git push --mirror https://github.com/yourname/private-repo.git
cd ..
rm -rf public-repo.git

installing jupyter notebook

conda install -c conda-forge jupyterlab
conda install -c conda-forge nb_conda_kernels
conda install -c conda-forge jupyter_contrib_nbextensions

@nashid
nashid / GPT4all-langchain-demo.ipynb
Created June 19, 2023 18:06 — forked from psychemedia/GPT4all-langchain-demo.ipynb
Example of running GPT4all local LLM via langchain in a Jupyter notebook (Python)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Basics

There are six main areas that LangChain is designed to help with. These are, in increasing order of complexity:

  • 📃 LLMs and Prompts
  • 🔗 Chains
  • 📚 Data Augmented Generation
  • 🤖 Agents
  • 🧠 Memory
  • 🧐 Evaluation
find . -name 'meta.json' -exec cat {} \; | grep "git_url" > shipwright-repos.txt