LEGO Space Shuttle Discovery

LEGO Space Shuttle Discovery

The world is fun, when we dream big. My new LEGO collection NASA Space Shuttle Discovery Space Shuttle Discovery Hubble Space Telescope

Key Value Store

Hash table is easy to understand in concept. But the key value store, a distributed hash table with high availability requires sophisticated design.

Viewer Shortcut

Viewers: man less command key forward page space backward page b down a line j up a line k top g search / next search n previous search N quit q

VI Shortcut

Move command key number up k 2k down j 2j left h 2h right l 2l next word begin w 2w next word end e 2e previous word b 2b begin line 0 end line $ find char fc 2fc next find ; preivous find , line number 2G next paragraph } previous paragraph { next sentence ) previous sentence ( file begin 0G file end G previous position `` Scroll command key down Ctrl + E up Ctrl + Y next page Ctrl + F previous page Ctrl + B center z.

Linux Command

Command cmd --help cmd -h man cmd man -k search_term which cmd history |tail -10 history |grep keyword !! !-2 File and Directory Navigate cd .

Customize Ubuntu

Make Linux look like Mac Check the desktop Environment echo $XDG_CURRENT_DESKTOP ubuntu:GNOME Install GNOME Tweaks sudo apt install gnome-tweaks Install GNOME extensions Go to the website GNOME extensions Install the browser add-on Install User Themes extension from the website Install macOS theme BigSur GTK3 Theme ~/.

Dual Boot Linux and Windows

Steps: Figure out UEFI or legacy BIOS System Information > System Summary > BIOS Mode: UEFI Disable Fast Startup

Migrate to Hugo

Migrate my blog to Hugo. Document: https://gohugo.io/documentation/ My favorite theme: Mainroad Setup # install snap install hugo --channel=extended # verify install hugo version # crate a new site hugo new site my-blog # add theme git submodule add https://github.

Dependency Injection

Dependency injection is one of my favorite design pattern. The application is kind of transparent, which is one-off configuration in the app startup, and then use it naturally like it doesn’t exist.

Plot

Plot quick reference. %matplotlib inline # %matplotlib notebook # Interactive plot, need restart Jupyter Notebook kernel import pandas as pd import matplotlib.