注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。
启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
| from langchain import PromptTemplate, LLMChain | |
| from langchain.document_loaders import UnstructuredHTMLLoader | |
| from langchain.embeddings import LlamaCppEmbeddings | |
| from langchain.llms import LlamaCpp | |
| from langchain.text_splitter import RecursiveCharacterTextSplitter | |
| from langchain.vectorstores.faiss import FAISS | |
| loader = UnstructuredHTMLLoader("langchain/docs/_build/html/index.html") | |
| embedding = LlamaCppEmbeddings(model_path="path/models/ggml-model-q4_0.bin") | |
| llm = LlamaCpp(model_path="path/models/ggml-model-q4_0.bin") |
| docker logs nginx 2>&1 | grep "127." | |
| # ref: http://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.