- LangChain is a framework for developing applications powered by language models.
- LLM Engine - The open source engine for fine-tuning and serving large language models (is the easiest way to customize and serve LLMs):
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
// Find all buttons with data-testid="job-artifacts-delete-button" | |
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); | |
// Function to click on the second button within the pop-up | |
const clickSecondButtonInPopup = async () => { | |
const secondButton = document.querySelector('.btn.js-modal-action-primary.btn-danger.btn-md.gl-button'); | |
// If the second button is found, click on it | |
if (secondButton) { | |
secondButton.click(); | |
} else { |
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 | |
# System Maintenance Script | |
# Create log file | |
log=/var/log/maintenance.log | |
# Print start status | |
echo "$(date) - Starting system maintenance" >> $log |
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 | |
# Set the variables. | |
server_ip="192.168.1.100" | |
username="user" | |
password="passwd" | |
source_directory="/home/user/my_directory" | |
destination_directory="/opt/my_directory" | |
# Connect to the server. |
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 | |
# This script will back up all the files in the current directory to a .tar.gz file. | |
# Get the current date and time. | |
date +"%Y-%m-%d_%H:%M:%S" | |
# Create a backup file. | |
backup_file="backup_$(date +"%Y-%m-%d_%H:%M:%S").tar.gz" | |
# Tar up all of the files in the current directory. |
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 zx | |
await $`cat package.json | grep name` | |
let branch = await $`git branch --show-current` | |
await $`dep deploy --branch=${branch}` | |
await Promise.all([ | |
$`sleep 1; echo 1`, | |
$`sleep 2; echo 2`, |
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 axios from 'axios'; | |
import fs from 'fs'; | |
// Artifactory configuration | |
const ARTIFACTORY_URL = 'https://your-artifactory-url.com'; | |
const ARTIFACTORY_REPO = 'your-repo-name'; | |
const ARTIFACTORY_USERNAME = 'your-username'; | |
const ARTIFACTORY_API_KEY = 'your-api-key'; | |
// LLM model file path |
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 | |
# Artifactory configuration - Change it to your own settings | |
ARTIFACTORY_URL = 'https://your-artifactory-url.com' | |
ARTIFACTORY_REPO = 'your-repo-name' | |
ARTIFACTORY_USERNAME = 'your-username' | |
ARTIFACTORY_API_KEY = 'your-api-key' | |
# LLM model file path | |
LLM_MODEL_FILE = 'path/to/your/llm_model.tar.gz' |
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 { SkyMass } from "@skymass/skymass"; // "@skymass/skymass": "^0.3.7" | |
import "dotenv/config"; | |
import pgPromise from "pg-promise"; | |
const db = await initDB(); // pgp(process.env["CONNECTION_DB"]); | |
const sm = new SkyMass({ key: process.env["SKYMASS_KEY"] }); | |
// | |
// function to initialize the database - Some random names, numbers and other stuff so it will be a 'full table' |
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 java.util.Scanner; | |
/** | |
* This program asks the user for their name, age, and favorite color. | |
* It then prints a report to the console. | |
*/ | |
public class QA { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
NewerOlder