This file contains hidden or 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 nu | |
| def main [user?: string, limit?: int] { | |
| let user: string = ($user | default "shikanime") | |
| let limit: int = ($limit | default 200) | |
| if (which gh | is-empty) { | |
| error make {msg: "gh CLI is not installed."} | |
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 ./ |
This file contains hidden or 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
| import tensorflow as tf | |
| window_size = 2 | |
| label_size = 1 | |
| inputs = tf.random.stateless_uniform(shape=(10, 3), seed=(2, 3)) | |
| dataset = tf.data.Dataset.from_tensor_slices(inputs) | |
| dataset = dataset.window(window_size + label_size, shift=label_size, drop_remainder=True) | |
| dataset = dataset.flat_map(lambda window: window.batch(window_size + label_size)) |
NewerOlder