Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
components: | |
schemas: | |
Error: | |
properties: | |
errorCode: | |
description: | | |
A 5-digit error code uniquely identifying this particular type of error. | |
example: 40149 | |
type: number | |
message: |
import os | |
import subprocess | |
from typing import Optional | |
from IPython.core.interactiveshell import InteractiveShell | |
from IPython.core.magic import register_line_magic | |
from IPython.core.magic_arguments import (argument, magic_arguments, | |
parse_argstring) | |
from rich import print as rprint |
#!/usr/bin/env bash | |
# ----------------------------------------------------------------------------- | |
# deb-install-from-url.sh | |
# | |
# @description Basic helper script to install deb package from a URL. Requires URL as arg. | |
# Any additional args are passed to gdebi. Use -n for non-interactive install. | |
# | |
# @usage deb-install-from-url.sh <url> [GDEBI_OPTS] | |
# @arg 1 <url> URL of the deb package to install. | |
# @nargs [GDEBI_OPTS] args to pass to gdebi (optional) |
#!/usr/bin/env bash | |
# ----------------------------------------------------------------------------- | |
# bat-extras | Copyright (C) 2020 eth-p | MIT License | |
# | |
# Repository: https://github.com/eth-p/bat-extras | |
# Issues: https://github.com/eth-p/bat-extras/issues | |
# ----------------------------------------------------------------------------- | |
# shellcheck disable=SC1090 | |
LIB="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo ".")")/../lib" && pwd)" | |
source "${LIB}/constants.sh" |
#!/home/tim/.local/share/micromamba/evs/cuda-ev/bi/python | |
# -*- coding: utf-8 -*- | |
import logging | |
import ollama | |
import chromadb | |
logging.getLogger().setLevel(logging.INFO) |
# nvm -- sourcing is very slow, use lazy load | |
if [[ -f "$HOME/.nvm/nvm.sh" ]]; then | |
function nvm() { | |
unfunction nvm | |
source "$HOME/.nvm/nvm.sh" | |
nvm "$@" | |
} | |
fi |