Ben Chuanlong Du's Blog

It is never too late to learn.

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 …

Package Management in Linux

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

There are many different ways to install packages in Linux.

  1. Build from source.

  2. Pre-built binaries.

  3. Use distribution specific tools. For example,

    Notice that Atomic Linux distributions …

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 …

Transform Text Using sed

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

Alternatives

  1. sad is a simpler alternative to sed. sad is implemented in Rust and has built-in integration of fzf, which makes it easy to visually inspect changes.

  2. For complicated text substitutions …