kelu | 血衫非弧の一存

Mac sharing network with iPad

Original link: https://blog.kelu.org/software/2023/09/06/mac-sharing-network-for-ipad.html The Wi-Fi in the office is always unstable, because I often use typec to connect to the Mac for charging, so I can directly let the iPad use the Mac network: Settings-General-Sharing Click on Internet Sharing : Select Wi-Fi and select iPad USB below. Of course, you can also choose other ports …

Mac sharing network with iPad Read More »

How to kill a windows in tmux?

Original link: https://blog.kelu.org/tech/2023/08/22/kill-windows.html Usually <Prefix> x is used to delete a panel, and I have always wanted to see how to kill a windows. There really are: <Prefix> & References How do I terminate a window in tmux? This article is transferred from: https://blog.kelu.org/tech/2023/08/22/kill-windows.html This site is only for collection, and the copyright belongs to …

How to kill a windows in tmux? Read More »

A script that automatically uploads markdown local images to minio

Original link: https://blog.kelu.org/tech/2023/08/21/automatically-uploads-local-markdown-images-to-minio-script.html I basically use typora, a markdown tool, to write blogs. When inserting a picture, it will automatically generate a picture backup locally. In this article, I will automatically replace the image path in the article, change it to the cloud path, and automatically upload the image to the cloud. The service I …

A script that automatically uploads markdown local images to minio Read More »

Disable gVim from generating backup files in Windows

Original link: https://blog.kelu.org/tech/2023/08/17/how-to-stop-gvim-from-generating-backup-files-in-windows.html Because the local environment will automatically synchronize files, it is very troublesome to synchronize a series of files such as ~ generated by vim every time. Can be turned off like this: set nobackup # 关闭~ 文件set noundofile # 关闭un~ 文件set noswapfile # 关闭swap 文件 This article is transferred from: https://blog.kelu.org/tech/2023/08/17/how-to-stop-gvim-from-generating-backup-files-in-windows.html This …

Disable gVim from generating backup files in Windows Read More »

Build jekyll environment under Mac

Original link: https://blog.kelu.org/tech/2023/08/15/jekyll-on-mac.html The reason why I don’t use docker is because my current local environment is rarely used for large-scale development, and docker consumes more system resources, so I don’t want to run it. First install chruby using homebrew: brew install chruby ruby-install xz Install ruby: ruby-install ruby 3.1.3 Waiting for a long time: …

Build jekyll environment under Mac Read More »

Use lsix to make the Linux command line display pictures

Original link: https://blog.kelu.org/tech/2023/08/04/displaying-images-in-the-linux-command-line.html Some pictures are stored on the server, and it is troublesome without preview. To be able to preview on the command line, a prerequisite is that the terminal supports Sixel Graphics. Like I use iTerm2, there is no problem with the server-side preview. But if you enter tmux, it will not work. …

Use lsix to make the Linux command line display pictures Read More »

Extend navicat trial time

Original link: https://blog.kelu.org/tech/2023/08/02/navicat-extend-trial-period.html Run the following command after the 14-day trial period expires under Mac OS: #!/bin/bash /usr/libexec/PlistBuddy -c “Delete :91F6C435D172C8163E0689D3DAD3F3E9” ~/Library/Preferences/com.navicat.NavicatPremium.plist /usr/libexec/PlistBuddy -c “Delete :B966DBD409B87EF577C9BBF3363E9614” ~/Library/Preferences/com.navicat.NavicatPremium.plist rm -rf ~/Library/Application \ Support/PremiumSoft \ CyberTech/Navicat \ CC/Navicat \ Premium/. * This article is transferred from: https://blog.kelu.org/tech/2023/08/02/navicat-extend-trial-period.html This site is only for collection, and the copyright belongs …

Extend navicat trial time Read More »

Mac set suspend hibernation on the command line

Original link: https://blog.kelu.org/tech/2023/07/02/mac-prevent-auto-sleep-by-terminal.html caffeinate This article is transferred from: https://blog.kelu.org/tech/2023/07/02/mac-prevent-auto-sleep-by-terminal.html This site is only for collection, and the copyright belongs to the original author.

Vscode selects the virtual environment of python

Original link: https://blog.kelu.org/tech/2023/07/01/vscode-python-conda-vitualenv.html Shortcut key cmd+p , enter: > interp Just choose the python interpreter. This article is transferred from: https://blog.kelu.org/tech/2023/07/01/vscode-python-conda-vitualenv.html This site is only for collection, and the copyright belongs to the original author.

Mac running chatglm2-6b

Original link:https://blog.kelu.org/tech/2023/06/30/mac-chatglm2-6b.html I am running on Mac studio M2 Max. This article documents the process of running it. Here are some of my version info: MacOS 13.4 Shared memory: 96G conda 23.5.0 Python 3.11.4 pip 23.1.2 1. Environmental preparation If you are not familiar with the use of python, you can refer to my previous …

Mac running chatglm2-6b Read More »

Terminal tool iSH under ipad

Original link: https://blog.kelu.org/tech/2023/06/07/ipad-ish.html I have been using prompt as a tool for ssh login on iOS. But it wasn’t until I used Neovim recently that I realized its problem – a q character would appear on the page periodically. It greatly affects the user experience. After searching the Internet, I found this nice command line …

Terminal tool iSH under ipad Read More »

vim ide

Original link: https://blog.kelu.org/tech/2023/06/06/vim-ide.html Document the process of configuring neovim. I am already a veteran of vim, so the related content of vim is omitted. install neovim apt install neovim view version nvim –version The version is too old, uninstall it. sudo apt remove neovim sudo apt remove neovim-runtime Update to latest version . Currently the …

vim ide Read More »

How to delete each line in a text file in batches under mac ^M

Original link: https://blog.kelu.org/tech/2023/05/30/how-to-remove-m-from-each-line-in-text-files-in-macos.html I compared the code sent by my windows colleague from Mac, git diff shows that many files have changed, and each line is displayed as modified, which seriously affects the diff function. Initially, we tried to use the sed command to strip the “^M” character at the end of each line, but …

How to delete each line in a text file in batches under mac ^M Read More »