Author Archives: cowman.chiang

Line breaks issue

When we use command “ssh” with auto-completion, we get this error result. This is because we used the editor “sublime text” to edit the config before, which used the line endings of Windows. Then we can edit the setting of … Continue reading

Posted in Mac, Sublime Text 2, Sublime Text 3 | Comments Off on Line breaks issue

[VirtualBox] Host-only network is not working.

We can usually find the information about connecting to the Guest machine in VirtualBox. Most of the practices are performed using the Host-only setting method. But in version 7.0.4 of VirtualBox, the same setting does not work. This is because … Continue reading

Posted in Virtualbox | Comments Off on [VirtualBox] Host-only network is not working.

[Java] String with number format

Reference

Posted in Java | Comments Off on [Java] String with number format

[Java] Mask some part of String

Reference: [stackoverflow] Mask some part of String

Posted in Java | Comments Off on [Java] Mask some part of String

Trace URL request

Reference

Posted in Network | Comments Off on Trace URL request

Mount remote folder over ssh on mac

Install sshfs Use brew (brew install sshfs) will get this error message, “Error: sshfs has been disabled because it requires FUSE!” Ref. https://github.com/telepresenceio/telepresence/issues/1654#issuecomment-1204676705 So download and install https://github.com/osxfuse/sshfs/releases/download/osxfuse-sshfs-2.5.0/sshfs-2.5.0.pkg Create local folder

Mount remote folder

Umount floder

Posted in Mac | Comments Off on Mount remote folder over ssh on mac

RocksDB Tool

Install rocksdb first.

Add alias in zshrc

List all column families

Scan command:

Show result with hex value

Command description (Some commands are inconsistent with how they are used on linux servers)

Posted in RocksDB | Comments Off on RocksDB Tool

[Java] Append string with adaptive font size to image

Ref: https://blog.csdn.net/zengrenyuan/article/details/80281738

Posted in Java | Comments Off on [Java] Append string with adaptive font size to image

[Docker] time sync with host

Source: stackoverflow: How to make sure docker’s time syncs with that of the host?

Posted in Docker | Comments Off on [Docker] time sync with host

[Docker] Common commands

show all containers: docker ps -a stop all containers: docker kill $(docker ps -q) remove all containers: docker rm $(docker ps -a -q) remove all docker images: docker rmi $(docker images -q) enter docker container: docker exec -it $(container id) … Continue reading

Posted in Docker | Leave a comment