This file contains 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/bash | |
# Set the value of USER_NAME variable to your username | |
export USERNAME="Your username" | |
# Set the value of ACCESS_TOKEN variable to your access token | |
export ACCESS_TOKEN="Your access token" | |
# Get the script directory |
This file contains 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/bash | |
# This script resets the firewall rules, installs iptables-persistent, and saves the rules to files. | |
# Set the default policies to accept all traffic | |
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT | |
# Flush all existing rules and chains |
This file contains 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 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. |