This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration file for the Sphinx documentation builder. | |
# https://www.sphinx-doc.org/en/master/usage/configuration.html | |
import os | |
# -- Project information ----------------------------------------------------- | |
project = "MyST-NB" | |
copyright = "2022, Executable Book Project" | |
author = "Executable Book Project" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install pre-commit hooks via | |
# pre-commit install | |
exclude: > | |
(?x)^( | |
\.vscode/settings\.json| | |
tests/commonmark/commonmark\.json| | |
.*\.xml| | |
tests/.*\.txt | |
)$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
WINDOW_NAME='Hyper' | |
# Use "wmctrl -l" to get list of all window names if needed | |
# when setting the target window name. May need to install wmctrl. | |
# | |
# Example output: | |
# 0x00e00003 0 dell-XPS Hyper | |
# 0x03600003 0 dell-XPS Script that activates a window by name so it can be configured to a global hotkey. If the window is not open, then it will launch the app/program. Requires linux and genome. and 9 more pages - Personal - Microsoft Edge Dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Main Configuration Options | |
# Paths of directories or files that should be included. If no paths are specified, pyright defaults | |
# to the directory that contains the config file. | |
include: [] | |
# [array of paths, optional]: Paths of directories or files that should be included. If no paths are | |
# specified, pyright defaults to the directory that contains the config file. Paths may contain | |
# wildcard characters ** (a directory or multiple levels of directories), * (a sequence of zero or more | |
# characters), or ? (a single character). If no include paths are specified, the root path for the | |
# workspace is assumed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
################### set env vars ################### | |
# changedir to script parent | |
cd "$(dirname "$0")" || exit | |
# container name | |
REDIS_STACK_CONTAINER_NAME="redis-stack" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# --- | |
# @name update-cargo-binaries.sh | |
# --- | |
# @description This script updates installed Cargo crates to their latest versions. | |
# It checks for the presence of required commands, verifies the CARGO_HOME environment variable, | |
# and updates each crate in parallel up to a specified limit. | |
# | |
# +----------------+----------------+----------------+----------------+----------------+----------------+ | |
set -euo pipefail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
set -e | |
set -o pipefail | |
display_help() { | |
echo "Usage: cp-from-user [option...] --path <PATH> --source-user <SRC-USER> [--destination-user <DST-USER>]" | |
echo | |
echo "Util to copy file or directory from one user to another" | |
echo | |
echo " -p, --path <PATH> Path to the file or directory from home directory." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# python=3.11 | |
# cuda-toolkit=12.1.0 | |
# Linux | |
name: LLM-env | |
channels: | |
- pytorch | |
- nvidia | |
- conda-forge | |
- defaults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt update | |
sudo apt install -y glslc vulkan-tools vkroots-headers vulkan-validationlayers-dev spirv-cross cmake git | |
if [ -d ~/.local/gpt4all ] ; then | |
echo "gpt4all already installed" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
math_tutor_assistant.py | |
Program using OpenAI's assistant API to solve math problems. | |
@sorce: openai/openai-python (examples/assistant.py) | |
""" | |
import time |
OlderNewer