A guide on using Ollama as the OpenAI API provider for inline completions in iTerm2.
- API URL:
http://127.0.0.1:11434/v1/completions - Model:
mistral - Tokens:
4000 - Use legacy completions API:
true
Password-store keeps your passwords (or any other sensitive information) saved in GnuPG encrypted files organized in ~/.password-store. For more information about GPG, consult the GNU Privacy Handbook.
To get started, install pass and generate a keypair.
$ brew install pass
$ gpg --gen-key
$ gpg --list-keysThere are a number of additional dependencies required for getting things installed on OS X. Starting with a blank slate OS X machine, this is the process it takes:
# Install Xcode Command Line Tools
# Install Homebrew
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
| # remgit.sh | |
| # Creates a remote git repository from the current local directory | |
| # Configuration | |
| # Replace SSH_USERNAME, SSH_HOST, SSH_GIT_PATH with your details | |
| USER=SSH_USERNAME | |
| HOST=SSH_HOST | |
| GIT_PATH=SSH_GIT_PATH | |
| REPO=${PWD##*/} |
| /** | |
| The following example uses this function to calculate the matrix-vector product using | |
| a blas/lapack routine: | |
| / 3 1 3 \ / -1 \ | |
| | 1 5 9 | * | -1 |. | |
| \ 2 6 5 / \ 1 / | |
| D2 version based on the C version at http://www.seehuhn.de/pages/linear |
| """ | |
| cymex.pyx | |
| ========= | |
| This file shows how to bootstrap a C extension for MATLAB with just Cython, | |
| and no C stubs. This strategy probably would work for extending other | |
| languages as well, with C/Python. | |
| It is necessary to redirect MATLAB's libgfortran link as found in | |
| $MATLAB/sys/os/glnxa64/libgfortran.so.3 to the one to which your NumPy's |