Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on AstroNvim

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

LSP

Use the command :LspInstall to open the prompt to select a LSP to install for the current file type.

Snippets

https://github.com/L3MON4D3/LuaSnip

https://github.com/rafamadriz/friendly-snippets …

User Printers and Scanners on Linux

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Printing

Do NOT manually find and install manufactor-specific drivers for printers/scanners!! Modern printing standards built upon Internet Printing Protocol (IPP), such as IPP Everywhere, Apple's AirPrint, and the Mopria Alliance …

Tips on GitHub Actions

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips and Traps

  1. You can use sudo without password in Linux and macOS when running GitHub Actions.

  2. GitHub Actions supports manual triggers with workflow_dispatch. Workflow parameters are supported in manually triggers …

Tips on the Fish Shell

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips & Traps

  1. Configuration files of the fish shell are located at ~/.config/fish.

Installation & Configuration

icon makes it easy to install and configure the fish shell.

icon fish -ic

Key Bindings …

Package Management for Debian and Ubuntu

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  • dpkg: low-level (without deps manageent)
  • apt-get (and apt-*): low-level (with deps management)
  • apt: user friendly
  • aptitude: even more user friendly
  • ~~wajig~~: use apt or aptitude instead

Overall, apt and aptitude are …

ModuleNotFoundError: No Module Named _Ctypes in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Issue

The error message "ModuleNotFoundError: No Module Named _Ctypes" is thrown when using Python.

Cause

A crucial built-in module, _ctypes, is either missing from your Python installation or cannot be located …