How to Fix Frequent Freezes in macOS 13

1. Symptoms

After upgrading to macOS Ventura, apps kept freezing over and over. Clicking any app just showed the loading indicator, and everything responded very slowly.

2. Solution

Update:

Download the one-click script Just download it, unzip it, and run it.

1. Temporary workarounds:

Method 1:

  1. Press command+Space, search for Terminal, and open it.
  2. Enter the following command and press Return.
kill -9 $(pgrep SCIM)

Method 2:

  1. Open Launchpad and click Other;

How to Set Up a Firewall with UFW

1. Introduction

The firewall configuration tool that ships with Ubuntu is called UFW (Uncomplicated Firewall). UFW is a user-friendly front end for managing iptables firewall rules. Its main purpose is to make managing iptables easier. This guide uses UFW to configure and manage a firewall on Ubuntu 20.04.

2. Installing UFW

UFW usually comes preinstalled on Ubuntu 20.04. If for some reason it is not installed, you can install it with the following commands:

Expanding the Root Directory in Linux

I. Feature Description

When configuring Linux, insufficient space reserved for the root directory may cause programs to fail to start. While changing the data storage directory can resolve this issue, there are situations where such changes are not feasible due to various reasons. In such cases, expanding the root directory space becomes necessary.

Fixing the Missing Candidate Window in the Built-in Chinese Input Method on mac OS

1. Symptoms

  1. Switching between the Chinese and English input methods works normally;

  2. After switching to the Chinese input method, only underlined pinyin appears, but the candidate window doesn't show up, so you can't pick the word you want;

2. Solution

This is caused by a fault in the built-in mac OS input method process. You can also refer to the article How to Fix Frequent Freezes on macOS 13 to resolve it.

Fixing the Gitlab Runner Error "Host key verification failed."

1. Symptoms

Here is my .gitlab-ci.yml file:

before_script:
  - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
  - eval $(ssh-agent -s)
  - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
  - mkdir -p ~/.ssh
  - chmod 700 ~/.ssh

master-deploy:
  stage: deploy
  only:
    - master
  script:
    - scp -r index.html user@url:/index.html

The error output is as follows: