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 Bun from 'bun' | |
import { createYoga, YogaInitialContext, YogaServerInstance } from 'graphql-yoga' | |
import { makeHandler } from "graphql-ws/lib/use/bun"; | |
import { ExecutionArgs } from "@envelop/types"; | |
import { schema } from './graphql/schema'; | |
interface IUserContext { | |
token?: string; | |
} |
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 { Client as NotionClient } from '@notionhq/client'; | |
import { createClient, SupabaseClient } from '@supabase/supabase-js'; | |
import { ConversationalRetrievalQAChain } from 'langchain/chains'; | |
import { OpenAIEmbeddings } from 'langchain/embeddings/openai'; | |
import { OpenAIChat } from 'langchain/llms/openai'; | |
import { BufferMemory } from 'langchain/memory'; | |
import { ContextualCompressionRetriever } from 'langchain/retrievers/contextual_compression'; | |
import { LLMChainExtractor } from 'langchain/retrievers/document_compressors/chain_extract'; | |
import { ChainValues, LLMResult } from 'langchain/schema'; |
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
[gcode_macro PA_CAL] | |
# Klipper pressure advance line calibration macro. | |
# Usage: PA_CAL BED=100 NOZZLE=240 PA_START=0.0 PA_STOP=0.1 NZL=0.4 | |
# Or you can execute with no parameters, which will use values from printer.cfg and saved_variables.cfg. | |
# First prints a line with current set PA, then prints 21 additional line segments starting with PA_START, and increasing to PA_STOP. | |
# Based on http://realdeuce.github.io/Voron/PA/pressure_advance.html | |
# Cleaned up and moved to using saved_variables.cfg by u/jibbsisme | |
# Sourced from u/Deepsiks, assisted by u/imoftendisgruntled, u/scul86, and thanks to u/beansisfat, u/stray_r | |
description: Tune Pressure Advance |
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
#!/bin/bash | |
install_docker () { | |
sudo yum remove -y docker \ | |
docker-client \ | |
docker-client-latest \ | |
docker-common \ | |
docker-latest \ | |
docker-latest-logrotate \ | |
docker-logrotate \ |
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
#!/bin/bash | |
install_docker () { | |
sudo yum remove -y docker \ | |
docker-client \ | |
docker-client-latest \ | |
docker-common \ | |
docker-latest \ | |
docker-latest-logrotate \ | |
docker-logrotate \ |