- Setup various shortcuts
- Lock: ctrl + cmd + L (Use Shortcut app)
- Slack: ctrl + alt + A (Use Shortcut app)
- Onenote: ctrl + alt + S (Use Shortcut app)
- Screenshot: cmd + shift + S (Settings | Keyboard shorts | screenshots)
- Wechat: ctrl + alt + W (Wechat app built in)
- Switch Sougou EN/CN: ctrl + , (Settings | Keyboard shorts | Input Sources | Select next source ...)
- Left mouse click: cmd + ; (Shortcut app | Run Shell Script Click | /opt/homebrew/bin/cliclick c:.)
- English dictionary: ctrl + cmd + 2 (Use Shortcut app)
- Terminal: ctrl + alt + T (Use Shortcut app)
- Netease Music: ctrl + alt + M (Use Shortcut app)
- Symbol picker: ctrl + shift + Z (Settings | Keyboard shorts | App Shortcuts | All Applications | Add 'Emoji & Symbols' to ctrl + shift + Z
- Setup Keyboard layout
- Use customized keyboard layout: https://stackoverflow.com/questions/11876485/how-to-disable-generating-special-characters-when-pressing-the-alta-optiona
- Disable the default ABC keyboard layout:
- Change the current input source to your custom keyboard layout.
- Open
~/Library/Preferences/com.apple.HIToolbox.plist
(in 10.9) or~/Library/Preferences/ByHost/com.apple.HIToolbox.*.plist
(in 10.8 and earlier). You can convert the plist to XML withplutil -convert xml1
. - Remove the input source or input sources you want to disable from the
AppleEnabledInputSources
dictionary. If there is anAppleDefaultAsciiInputSource
key, remove it. - Restart.
- Use iTerm2 for Terminal
- Instal Brew
- brew install bash (Use bash instead of zsh)
- brew install emacs (Need to modify keyboard: Settings | Profiles | Keys | Key Mappings | Natural Text Editing | Add \033[1;5A (Send Text with vim special chars to ctrl + up | Add \033[1;5B for ctrl + down)
- Use Doll for Slack notification in the menu bar
- brew install --cask notunes (To disable Music to launch automatically when the bluetooth headphone is picked up)
Liang Zou's Tech Blog
Thank you for visiting!
12/17/2024
Set up a Mac computer
12/10/2024
How to fix Windows boot issues
- Use Windows Media creation tool to create a bootable USB Windows 10
- Boot to repair my computer and start a terminal
- Run:
- diskpart
- sel disk 0
- sel volume 0 ------`#mycomment (The system EFI volume)`
- assign letter S:
- exit
- Run:
- S:
- cd EFI\Microsoft\Boot\
- ren BCD BCD.bak
- bcdboot C:\Windows /s S: /f ALL
- bootrec /rebuildbcd
- exit
- Restart the computer and it should boot
12/09/2024
11/14/2024
How to enable the separate/standalone search box (search bar) on Ubuntu/Windows
Ubuntu:
Modify /opt/microsoft/msedge/microsoft-edge and change the last line to:
exec -a "$0" "$HERE/msedge" "--enable-features=msSearchBoxInToolbar,msSearchBoxInToolbarSearchInteractionTrigger,msSearchBoxInToolbarShownTrigger $@"
Then sudo chmod 555 /opt/microsoft/msedge/microsoft-edge
Windows:
Modify the shortcut and add:
--enable-features=msSearchBoxInToolbar,msSearchBoxInToolbarSearchInteractionTrigger,msSearchBoxInToolbarShownTrigger
11/12/2024
11/11/2024
Microsoft Office Infinite login loop fix
We have recently received the same feedback from many users and this has become a hot issue recently. After our investigation, your problem should be caused by an error in the account information recorded by the Office application, at this time I would recommend that you clean up the account information in the registry and then reopen the Office application and log in. Below are the exact steps:
1. Press Windows + R to open the run box, copy and paste the following path, back up all the folders in this path, and then delete them.
%localappdata%/Microsoft/OneAuth
%localappdata%/Microsoft/IdentityCache
2. Press Windows + R, enter regedit, click OK, open the registry, locate the following registry subkey, right-click Identity, and delete it.
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\Identity
Disclaimer: In general, changing registry subkeys or workgroup is intended for advanced users, administrators, and IT professionals. It can help fix some issues, but serious problems can arise if you modify the registry incorrectly. Therefore, make sure to follow these steps carefully. For additional protection, back up the registry before editing it. Then, you can restore the registry if a problem occurs. For more information on how to back up and restore the registry, click How to back up and restore the registry in Windows - Microsoft Support to view the article.
If the problem reappears after cleaning the registration information, please refer to the following method to roll back Office applications to an older version:
1. Please close all Office applications first.
2.Run Command Prompt as an administrator ("Win" logo key + "Q", enter "cmd", select "Run as administrator"), and enter the following commands one by one.
cd %programfiles% \Common Files\microsoft shared\ClickToRun
Officec2rclient.exe /update user updatetoversion=16.0.17531.20120
3. After completing the installation, please restart your computer, then open the Office application and sign in to your Microsoft account.
4. Please open any Word/Excel/PPT document > Click on File in the upper left corner of the page > Click on Account in the lower left corner of the page > On the right side of the page, there will be information about your Office product, please click on the update option on the left side of the Office Update > In the menu, find the Disable Update, to avoid the problem of updating Office to the latest version. to prevent Office from updating to the latest version and causing the problem again.
11/08/2024
Fix "Your organization requires that you change your PIN"
1. Open local GPO Editor by running gpedit.msc
command.
2. Next, go to Computer configuration > Administrative templates > System > PIN Complexity. Make the changes to match your PIN.
3. For password, changing the local group policy doesn't work. So the password must meet the complexity requirement set by the work account.