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 txtai import Embeddings | |
embeddings = Embeddings( | |
method="model2vec", | |
path="minishlab/M2V_base_output" | |
) | |
embeddings.index(["test"]) | |
embeddings.search("test") | |
# [(0, 1.0)] |
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 | |
help() { cat<<HELP | |
git-syncr - git worktree synchronizer | |
Usage: git syncr <command> | |
COMMANDS: | |
create <path> [<branch>] | |
Create new worktree at <path> forked from current directory. |
https://www.ksoftware.net/code-signing-certificates/ $84 one year, OV certificate big price difference? can this be trusted? why so much cheaper?
https://www.digicert.com/order/order-1.php $499 valid for one year
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
import requests | |
import re | |
def download_file(url): | |
local_filename = url.split('/')[-1] | |
r = requests.get(url, stream=True) | |
with open(local_filename, 'wb') as f: | |
for chunk in r.iter_content(chunk_size=1024): | |
if chunk: | |
f.write(chunk) |