base64 in shell

Used to go to some site when in need of en/de-code from/to base64. Turns out we can do that from the shell directly. Encode echo -n ‘My TextTo Encode’ | base64 The -n is to prevent the new line of the echo from being included in the result(by default echo outputs a trailing newline). Decode echo ‘My…

macos system launch config

MacOS Config options MacOS boot service is mainly configured via three ways: 1.  the system preferences -> Users & Groups -> Login items 2. /System/Library/StartupItems and /Library/StartupItems/ 3. launchd system initialization process configuration. The first two are relatively simple, we will focus mainly on the third more complex launchd configuration optimization. launchd is a key…

disable the macos auto update notification

The auto update notification is pretty annoying since it popup everyday, and you need several clicks to make it disappear. change from UI I tried to disable it from System Preference -> App Store -> uncheck Automatically check for update. it does not that the checkbox keep checked after i reopen the system preference panel….

bitten by system case sensitivity twice today

Today i was bitten by system case insensitivity twice: Maven test does not pick up Spring boot test profile properties git commit does not get the file name change. Spring boot profile based config In spring boot, we can have different resource files(.properties or .yml ) to hold properties. More over, we could have profile specific ones,…