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
# Load ip6table_filter module | |
modprobe ip6table_filter | |
# Persist Reboot | |
echo ip6table_filter | sudo tee -a /etc/modules-load.d/k3s.conf |
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 | |
SCRIPT=$(basename "$0") | |
# fetch status | |
STATUS=$(vcgencmd get_throttled | cut -d "=" -f 2) | |
# decode - https://www.raspberrypi.com/documentation/computers/os.html#get_throttled | |
echo "vcgencmd get_throttled ($STATUS)" | |
IFS="," |
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
from operator import itemgetter | |
from langchain.prompts.chat import ( | |
ChatPromptTemplate, | |
HumanMessagePromptTemplate, | |
SystemMessagePromptTemplate, | |
) | |
from langchain.chains.combine_documents import create_stuff_documents_chain | |
from langchain_core.output_parsers import StrOutputParser | |
from langchain.prompts.prompt import PromptTemplate |
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 57 mins █████████▌░░░░░░░░░░░ 45.8% | |
Bash 30 mins █████░░░░░░░░░░░░░░░░ 24.2% | |
YAML 16 mins ██▊░░░░░░░░░░░░░░░░░░ 13.1% | |
Nix 10 mins █▊░░░░░░░░░░░░░░░░░░░ 8.3% | |
JSON 6 mins █░░░░░░░░░░░░░░░░░░░░ 5.3% |
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
spec: | |
type: Spec | |
documentation_url: https://docs.sonarsource.com/ | |
connection_specification: | |
type: object | |
$schema: http://json-schema.org/draft-07/schema# | |
required: | |
- user_token | |
- qualifiers | |
- component_keys |
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
{ | |
"vim.commandLineModeKeyBindingsNonRecursive": [ | |
{ | |
"after": ["<C-Left>"], | |
"before": ["<C-L>"] | |
}, | |
{ | |
"after": ["<C-Right>"], | |
"before": ["<C-Y>"] | |
} |
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
CREATE OR REPLACE MODEL | |
search.universal_sentence_encoder_large OPTIONS(model_type='tensorflow', | |
model_path='gs://shikanime-studio-labs/universal-sentence-encoder-multilingual-large/*') |
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
CREATE OR REPLACE MODEL | |
search.vertex_ai_text_embeddings REMOTE | |
WITH CONNECTION `us.vertex_ai` OPTIONS(REMOTE_SERVICE_TYPE="CLOUD_AI_TEXT_EMBEDDING_MODEL_V1") |
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
# If we are a computer with nix available, then use that to setup | |
# the build environment with exactly what we need. | |
if has nix; then | |
use flake | |
fi | |
# Automatically setup a virtualenv | |
layout python | |
# Add well known WSL CUDA library |
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
FROM node:14-bullseye-slim AS runtime | |
# Set the working directory | |
WORKDIR /usr/src/unicorn | |
# Define the build environment | |
ENV NODE_ENV production | |
# Copy the application dependencies | |
COPY package.json yarn.lock ./ |
NewerOlder