Ben Chuanlong Du's Blog

It is never too late to learn.

Rip Is rm Improved

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

rip2 is the successor of rip.

Installation

cargo

cargo install --locked rip2

icon

Or you can use the following command if you use the tool icon. Notice that icon automatically configures rip to add a symbolic link to /usr/local/bin.

icon rip2 -ic

Environment Variables and Secure Path for sudo

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

sudo -E command_to_run

sudo $(which command_to_run)

sudo env "PATH=$PATH" nvim

The "correct" way is to update the secure path using the commanding sudo visudo.

For more discussions, please refer to …

Proxy for sudo

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

You can setup proxy in a terminal by export environment variables http_proxy and `https_proxy'.

export http_proxy='proxy_server:port'
export https_proxy='proxy_server:port'

However, you might find the exported environment variables are …

Run Virtual Machines on Linux

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

While VirtualBox is a popular cross-platform tool for running virtual machines, KVM is a superior solution for Linux as KVM is a type-1 hypervisor which runs directly on the hardware via …

Tips on Toolbx

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

I personally devoted effort on Docker images which makes it easy to develop in Docker containers.

  • Create a user with same uid/gid as the user on the host on the …