This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Set kernel parameters in /etc/sysctl.conf | |
| cat << EOF > /etc/sysctl.conf | |
| # Increase maximum number of open file descriptors | |
| fs.file-max = 1000000 | |
| # Increase maximum number of inotify instances per user | |
| fs.inotify.max_user_instances = 8192 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # This script aims to address the problem of input lag that can occur when using the Chinese input method on macOS. | |
| # It provides a simple and effective solution by terminating the SCIM process, which is often the cause of the lag. | |
| # To use the script, follow these steps: | |
| # 1. Open the Terminal application (located in "Applications/Utilities/Terminal"). | |
| # 2. Copy and paste the script into the Terminal window. | |
| # 3. Press Enter to execute the script. |