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 selenium import webdriver | |
# Set Chrome Options | |
options = webdriver.ChromeOptions() | |
options.add_argument("–disable-notifications") | |
options.add_argument("–no-sandbox") | |
options.add_argument("–disable-dev-shm-usage") | |
options.add_argument("–enable-logging") | |
options.add_argument("–disable-blink-features=AutomationControlled") | |
options.add_experimental_option("detach", True) |
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
{ | |
"boot-source": { | |
"kernel_image_path": "vmlinux-6.1.74", | |
"boot_args": "ro console=ttyS0 noapic reboot=k panic=1 pci=off" | |
}, | |
"drives": [ | |
{ | |
"drive_id": "rootfs", | |
"path_on_host": "ubuntu-22.04.ext4", | |
"is_root_device": true, |
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 | |
# https://github.com/firecracker-microvm/firecracker/blob/main/docs/getting-started.md | |
# | |
set -eux | |
TAP_DEV="tap0" | |
TAP_IP="172.16.0.1" | |
MASK_SHORT="/30" |
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
# reference https://deepnote.com/blog/semantic-search-using-faiss-and-mpnet | |
""" | |
A semantic search tool | |
""" | |
import pickle | |
from pathlib import Path | |
import faiss | |
import torch | |
from bs4 import BeautifulSoup | |
from transformers import AutoTokenizer, AutoModel |