Few useful tools for macOS
-
Open the Script - either open_terminal.scpt or open_iTerm2.scpt , and then choose File -> Export
-
Choose export as Application, and put it anywhere you like. Then Save.
-
(Optional) You can change the icon of your app: Find your app, then right click on it and choose Show Package Contents. Go into Contents/ , and use a text editor to open info.plist, you can find the item with icon name. Then you can edit it and put yours in the Resources directory, or you can just place yours in it and rename it as applet.icns.
-
Finally, find your app, then press and hold the Command key, drag your app to the tool bar. Then we're done! Whenever you want to open iTerm2 or Terminal in the current directory, just click on it.
Karabiner-Elements is a powerful utility for keyboard customization on macOS Sierra (10.12) or later. Since programmers prefer machanical keyboards and most of those keyboards are for windows, Karaviner-Elements becomes a great software solution.
###Remove: Refer to the Link Run this command to just remove the JDK:
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk<version>.jdk
Run these commands if you want to remove plugins:
sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -rf /Library/LaunchAgents/com.oracle.java.Java-Updater.plist
sudo rm -rf /Library/PrivilegedHelperTools/com.oracle.java.JavaUpdateHelper
sudo rm -rf /Library/LaunchDaemons/com.oracle.java.Helper-Tool.plist
sudo rm -rf /Library/Preferences/com.oracle.java.Helper-Tool.plist
Refer to this Link
brew tap caskroom/versions
brew cask install java8
To get a list of all older versions of java: brew tap caskroom/versions
and then use brew search java
.
If you do not want to install 3G MacTex, you could:
Download BasicTex From official site Or
brew cask install basictex
If you install BasicTex, you would be bothered by having to install dependency packages when needed. Or you can
brew cask install mactex-no-gui
After that, you should add it to the path
export PATH=/usr/local/texlive/2017basic/bin/x86_64-darwin:$PATH
sudo tlmgr update --self --repository http://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet
sudo tlmgr install latexmk --repository http://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet