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 subprocess | |
import json | |
import numpy as np | |
import tempfile | |
from PIL import Image as PILImage | |
from sentence_transformers import models, SentenceTransformer | |
import logging | |
import os | |
import io | |
from pymilvus import MilvusClient |
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
const { chromium } = require('playwright'); | |
const OpenAI = require('openai'); | |
const dotenv = require('dotenv'); | |
dotenv.config(); | |
const openai = new OpenAI({ | |
apiKey: process.env['OPENAI_API_KEY'], | |
}); | |
const model = "gpt-4" |
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
const config = require('./config') | |
const { Configuration, OpenAIApi } = require("openai"); | |
const configuration = new Configuration({ | |
apiKey: config.openai, | |
}); | |
const openai = new OpenAIApi(configuration); | |
const businessType = async (businessType) => { | |
console.log("businessType:", businessType) |
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
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://archive.ubuntu.com/ubuntu bionic main restricted | |
# deb-src http://archive.ubuntu.com/ubuntu bionic main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. | |
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted | |
# deb-src http://archive.ubuntu.com/ubuntu bionic-updates main restricted |
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
/* | |
run once wth first run | |
then run again with second run | |
then on the cli do | |
*/ | |
const fs = require('fs'); |
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
# after install | |
ssh-keygen | |
# New Session | |
tmate -S /tmp/tmate.sock new-session -d | |
# Show ssh url | |
tmate -S /tmp/tmate.sock display -p '#{tmate_ssh}' | |
# show web url |
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
DISKNUMBER=1 | |
sudo growpart /dev/sda $DISKNUMBER | |
sudo resize2fs /dev/sda$DISKNUMBER |
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
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
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
Verifying my Blockstack ID is secured with the address 12nFgG5vUYmbv7MPcekGJHHPMFQoveLm6h https://explorer.blockstack.org/address/12nFgG5vUYmbv7MPcekGJHHPMFQoveLm6h |
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
du -d1 -h /var/lib/docker/containers | sort -h |
NewerOlder