Microthinking

Just think about micro things

Lint/LeetCode Cheatsheets Search

Using Spring-security to Secure a Web Application

Dependencies

Read More

Set Java Application Timezone

Setting an Environment Variable

Read More

Install and Configure Fail2ban on Ubuntu

Install from the default Ubuntu repositories

Read More

MongoDB Group By Aggregate

Single Field Group By & Count:

Read More

Get Real Client IP When Using LXD to Forward Port

By default, the LXD port forwarding is non-nat mode. It will lost client ip information. In order to transmit client information, we need to add parameter nat=true. It requires the container has a static IP address.

Read More

How to set metric in OS moderated with NetworkManager

Ubuntu 20.04 desktop is using NetworkManager. Here is how to change the metric on CLI.

Read More

Change Snaps Installation and Data Directories

The problem is snaps packages is using the folders /var/lib/snapd and /var/snap by default. It may eat root space if we install too many packages. We can use mount --bind to move them to a big disk or partition.
The original script is from https://askubuntu.com/questions/1029562/move-snap-packages-to-another-location-directory

Read More

Fix MobaXterm X11 proxy Unsupported authorisation protocol

The error happened when I use sudo virt-manager.

Read More

Ubuntu rename account

sudo usermod -md /home/NewHome -l NewName OldName
sudo groupmod -n NewGroupName OldGroupName
Read More

Sync a fork of a repository to keep it up-to-date with the upstream repository

  • Configuring a remote for a fork
Read More
« Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Next »