Terminal Shell on OS does not use the system proxy, so even if the system proxy is enabled, commands like curl or npm in iTerm2 may still face network issues.

Proxy apps like Surge or others that support modifying the network card can force the terminal to use the proxy, but sometimes, we don’t want to use this method. So, Can the terminal shell use the proxy?

Yes, there is. Here is the solution.

Shell Configuration File

Here, take bash as an example. Open the bash_profile by vi/.bash_profile. If you usually use zsh, you can also vi ~/.zshrc`.

Add the following configuration:

Read more »

During a pleasant work trip, I read a few books, including The 7 Habits of Highly Effective People. I have some personal reflections and thoughts on these seven habits.

While marking this down, I also encourage myself to improve and adjust continually.

Be Proactive

I think I am at least proactive when it comes to learning. Looking back at the past year, I feel I have made some gains in

  1. Reading, especially in English, has improved, resulting in a reduction in reading difficulties.
  2. Communication and consulting: I’m not a closed-off person due to my personality. So, I often like to talk, share, ask questions, and engage in discussions.

Therefore, I think I’m doing pretty well with this habit, but there’s still room for improvement.

Read more »

Mac and iPhone are the main productivity devices in actual work and life, while the iPad ranks second in my toolchain. However, it is also important. My positioning for the iPad is reading, so I chose the mini size.

Here, I will organize the Apps installed on the iPad for record purposes, and maybe it can also provide some references for some friends.

App List

YouTube

  • Function: Video
  • Pricing: Paid/Subscription
  • Note: Rich and comprehensive videos, suitable for both learning and entertainment
Read more »

Sorting out my personal iPhone software for record-keeping and to provide references for friends.

Description

  1. Some apps are paid, although many free and open-source alternatives exist. Ultimately, an app’s value is determined by its output, and these apps have significantly helped my work and life, making them worth the cost.
  2. Due to personal financial constraints, some paid apps are obtained through student licenses or trial solutions. Student verification can be free with full functionality. Trial versions also have full functionality but are time-limited. However, there are ways to clear the trial record, allowing continuous use, though this method is not ideal.
  3. For paid apps, within economically acceptable limits, support legitimate purchases when possible.
  4. This list is updated periodically so that some apps may be replaced.
  5. Through continuous selection and refinement of apps, I have realized that apps are like swords to a swordsman. It’s not about quantity but about how handy and sharp they are. Choose the right ones, understand them deeply, and improve your efficiency, improving your work and life.

The app list is as follows:

ChatGPT

Read more »

Sometimes, different Git configurations are needed for personal GitHub projects and company GitLab projects. For example, I want to use my company username, heqiangx, for GitLab projects but my English name, Alan He, for GitHub. How can this be achieved? The solution is to switch Git configurations automatically based on the repository address.

Manually configuring each repository? Sorry, I dislike inefficient methods.

.ssh/config

Why mention this file first? I initially misunderstood its purpose. Previously, I relied on the configurations here to ensure commits to different repository services used different tokens, leading me to believe this file could solve the problem.

However, this is incorrect because the core issue is:

Read more »
0%