Frytea | 宋天轮

Check if the current terminal is Docker

Original link: https://blog.frytea.com/archives/775/ To determine if the currently running terminal is inside a Docker container, you can examine container-specific files and environment variables. Here’s one way, judging by looking at the /proc/1/cgroup file: cat /proc/1/cgroup Observe the content of the output. If you see something related to Docker such as docker or containerd, you are …

Check if the current terminal is Docker Read More »

Batch modify git warehouse address

Original link: https://blog.frytea.com/archives/788/ The following command will modify the remote address of your code warehouse, please make sure to clearly understand the meaning of the command and perform the operation. If you are not sure, please make a data backup in advance! ! ! find ./ -type f -name “config” -exec perl -i -pe ‘s/192\.168\.66\.43/10.168.68.43/g’ …

Batch modify git warehouse address Read More »

Tiddlywiki monomer/folder conversion

Original link: https://blog.frytea.com/archives/781/ # TiddlyWiki单文件转文件夹命令$ tiddlywiki –load ./mywiki.html –savewikifolder ./mywikifolder # TiddlyWiki文件夹转单文件命令$ tiddlywiki ./mywikifolder –rendertiddler ‘$:/core/save/all’ mywiki.html text/plain Reference Convert TiddlyWiki folder version and HTML version This article is transferred from: https://blog.frytea.com/archives/781/ This site is only for collection, and the copyright belongs to the original author.

Run ChatGPT and Stable Diffusion in your browser

Original link: https://blog.frytea.com/archives/780/ Now you can run ChatGPT and Stable Diffusion in the browser, please see: https://skybyte.me/79.html for details M1 and M2 computers can run directly, and other computers can also try it, come and try it! This article is transferred from: https://blog.frytea.com/archives/780/ This site is only for collection, and the copyright belongs to the …

Run ChatGPT and Stable Diffusion in your browser Read More »

Run Tsinghua open source language model ChatGLM-6B on your own computer

Original link: https://blog.frytea.com/archives/779/ Some people say that AIGC took 2 years to complete the 10-year journey of the Internet, because what everyone sees is that AI-centric products have sprung up like mushrooms recently, but what you can’t see is that big players in various fields have already started related research a few years ago. layout. …

Run Tsinghua open source language model ChatGLM-6B on your own computer Read More »

Confirm whether the current terminal is running in the LXC container

Original link: https://blog.frytea.com/archives/774/ To determine if the currently running system is inside an LXC container, certain environment variables and files can be checked. Here’s one way, judged by looking at the /proc/1/environ file: Run the following command in a terminal: cat /proc/1/environ | tr ‘\0’ ‘\n’ | grep ‘^container=’ Observe the content of the output. …

Confirm whether the current terminal is running in the LXC container Read More »

Run Mochi Diffusion, an open source AI image generation model, on a MacBook

Original link: https://blog.frytea.com/archives/778/ Mochi Diffusion is an open source client that runs Stable Diffusion natively on Mac. You can use Stable Diffusion to draw on iOS and Mac without networking. Stable Diffusion, as an open source solution in the current popular AI image generation, has received widespread attention. This model can be run relatively quickly …

Run Mochi Diffusion, an open source AI image generation model, on a MacBook Read More »

Install and start Git LFS large file processing module

Original link: https://blog.frytea.com/archives/777/ Git LFS(Large File Storage)是一个Git 扩展,用于更有效地处理大型文件。在基于git 托管大模型的平台拉取AI 模型时常常需要开启这一功能。要在不同的操作系统上安装Git LFS,请按照以下步骤操作: ## 第一步、安装Git LFS ### 对于macOS如果你已经安装了Homebrew,你可以使用以下命令安装Git LFS: brew install git-lfs 如果你还没有安装Homebrew,可以访问Homebrew 官方网站获取安装指南。 ### 对于Windows访问Git LFS 的GitHub 仓库的Releases 页面。下载适用于Windows 的最新版本的安装程序(.exe 文件)。双击下载的.exe 文件并按照提示进行安装。 ## 对于macOS如果你已经安装了Homebrew,你可以使用以下命令安装Git LFS: brew install git-lfs 如果你还没有安装Homebrew,可以访问Homebrew 官方网站获取安装指南。 ### 对于Debian-based 系统(如Ubuntu)在终端中运行以下命令: sudo apt-get update sudo apt-get install git-lfs ### 对于Fedora-based 系统在终端中运行以下命令: sudo dnf install …

Install and start Git LFS large file processing module Read More »

Linux on macOS – The OrbStack Solution

Original link: https://blog.frytea.com/archives/772/ OrbStack ) is a fast, lightweight and easy way to run Docker containers and Linux machines on macOS. It’s a supercharged WSL and Docker desktop replacement, all in one easy-to-use app. GitHub: https://github.com/orbstack The Docker Desktop on macOS has been criticized for being slow, heavy, and resource-intensive. The emergence of OrbStack is …

Linux on macOS – The OrbStack Solution Read More »