"Life is all about sharing. If we are good at something, pass it on." - Mary Berry

Helix: How to jump to the build error from the terminal output?

2023-07-21

In my previous post, I shared how I run code in Helix, and today I’ve taken things a step further by integrating WezTerm into Helix. Now, after running the code, if I encountered errors or warnings, I can simply click on the corresponding file to open it in Helix at the specific line and column number.

Previously, I had to either look at the line number and navigate to that specific line or manually copy the file path and open it in Helix, which was somewhat cumbersome.

Read More...


How I run code in Helix editor?

2023-07-14

In my previous post, I mentioned that I’ve made the switch to WezTerm and Helix, and today I want to share how I run my code in this setup.

Previously, I would split Wezterm into two panes and run the code in a new pane. However, I found it cumbersome to type different commands for each programming language (Go, C, Racket, and so on). While auto-completion helped to some extent, or using control-p to run the previous command, it still took up a little time.

Read More...


How I setup a new Macbook in 2023

2023-05-06

I purchased my first MacBook Pro in 2013 prior to transitioning to remote work. In my job, we were using saltstack to build an automation tool. In order to delve deeper into Salt, I decided to configure my Macbook using it, and I documented the process here.

I also utilized this method to set up another Macbook for my older sister.

In 2018, due to work requirements, 8GB of memory proved insufficient to run Windows on VirtualBox, prompting me to acquire a second hand MacBook with 16GB of RAM.

Read More...


Load averages approximately 1000 on macOS?

2023-04-20

Em “vợ” ra đời năm 2015, cưới về năm 2018, loa đã rè, pin đã chai.

Một ngày đẹp trời bật máy lên và không làm được gì. Load gần… 1000 (trong ảnh là sau khi đã restart, và hơn 30p sau mới gõ được w):

Load Averages 600

Mình thử khởi động lại thì mất khoảng 5-10p mới đến chỗ gõ password. Search thấy có bạn thay cable ổ cứng thì hết nhưng đời 2015 thì ổ cứng không có cable.

Read More...