Ben Chuanlong Du's Blog

It is never too late to learn.

Git Implementations and Bindings in Python

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

There are multiple Git implementations/bindings in Python: pygit2, Dulwich and GitPython .

Below is a simple comparison of the 3 packages.

pygit2 dulwich GitPython
Status Active Active Maintenance mode
Implementation bindings …

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 …