MacOS

  • Sublime Text 3 Install Package not working in Big Sur

    Here's how to fix Sublime Text 3 Install Package not working or not showing on package list (command + shift + P) Open the Sublime app Press cmd + shift + p Enter Browse Packages and press Enter This command will open the Finder app Go to the Installed Packages folder and delete the Package Control plugin file (if it exists) Select to Packages folder (in the same level of the Installed Packages folder) and hit cmd + c to copy the folder (path) Opeb Terminal app Enter cd and paste the folder path (cmd + v). You will see the command like this: cd /Users/[youre-username]/Library/Application Support/Sublime Text 3/Packages Press Enter to go into the folder Clone the @TheSecEng 's fork git clone git@github.com:TheSecEng/package_control.git "Package Control" Restart Sublime    
  • macos

    My top 5 Mac OS free and useful application

    1. Caffeine https://caffeine.en.softonic.com/mac It's a simple toggle to prevent your computer from showing screensaver and going to sleep. Instead of going to "System Preferences" each time you want make sure your computer will not sleep for a period of time, you just toggle Caffeine on. It's useful when watching movie. As a software engineer, sometimes I need to run something from command line that requires long hours to complete over SSH where you need your machine to be up or else it will disconnects from the network and will close all your session.   2. MonitorControl https://github.com/MonitorControl/MonitorControl If you have an extra monitor hooked up to your Mac and you want to adjust the brightness and/or contrast of you monitor, you have to control it manually through your monitor's physical buttons. MonitorControl enables you to control brightness and/or contrast of your external monitor from your Mac and can even control by your Mac's brightness keyboard key.   3. Alfred https://www.alfredapp.com/ Mac Spotlight on steroids. It's a better search tool for Mac compared to Mac's own Spotlight. It can do all cool stuffs like calculation, file search and always can do better. Can search and index files faster, you can add custom search.   4. Memory Clean 2 https://fiplab.com/apps/memory-clean-for-mac Simple and easy way to free your computer memory. It also shows which application takes the most memory.   5. ScreenPointer https://apps.apple.com/pk/app/screenpointer/id1368204906 Free mouse pointer highlighter great for doing online presentation or web tutorials.   Don't agree with my list or have anything that I should include? Please let me know!
  • How to uninstall EpocCam macOS drivers

    If you have installed EpocCam macOS drivers and somehow it didn't worked out for you and you want to uninstall it, if you used the official uninstaller, chances are you still can see the EpocCam microphone. Just run this command on your terminal sudo rm -r /Library/Audio/Plug-Ins/HAL/VirtualMic.driver Then restart your computer.
  • Error pip install mysqlclient on MacOSX

     If you have the similar issue as below ERROR: Command errored out with exit status 1: command: /.../bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/53/l74q51892zjgsql64hkvhw180000gn/T/pip-install-e_x8dx0d/mysqlclient/setup.py'"'"'; __file__='"'"'/private/var/folders/53/l74q51892zjgsql64hkvhw180000gn/T/pip-install-e_x8dx0d/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/53/l74q51892zjgsql64hkvhw180000gn/T/pip-wheel-8pw_7779 cwd: /private/var/folders/53/l74q51892zjgsql64hkvhw180000gn/T/pip-install-e_x8dx0d/mysqlclient/ Complete output (30 lines): running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.9-x86_64-3.7 creating build/lib.macosx-10.9-x86_64-3.7/MySQLdb copying MySQLdb/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/MySQLdb copying MySQLdb/_exceptions.py -> build/lib.macosx-10.9-x86_64-3.7/MySQLdb copying MySQLdb/compat.py -> build/lib.macosx-10.9-x86_64-3.7/MySQLdb copying MySQLdb/connections.py -> build/lib.macosx-10.9-x86_64-3.7/MySQLdb copying MySQLdb/converters.py -> build/lib.macosx-10.9-x86_64-3.7/MySQLdb copying MySQLdb/cursors.py -> build/lib.macosx-10.9-x86_64-3.7/MySQLdb copying MySQLdb/release.py -> build/lib.macosx-10.9-x86_64-3.7/MySQLdb copying MySQLdb/times.py -> build/lib.macosx-10.9-x86_64-3.7/MySQLdb creating build/lib.macosx-10.9-x86_64-3.7/MySQLdb/constants copying MySQLdb/constants/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/MySQLdb/constants copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.9-x86_64-3.7/MySQLdb/constants copying MySQLdb/constants/CR.py -> build/lib.macosx-10.9-x86_64-3.7/MySQLdb/constants copying MySQLdb/constants/ER.py -> build/lib.macosx-10.9-x86_64-3.7/MySQLdb/constants copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.9-x86_64-3.7/MySQLdb/constants copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.9-x86_64-3.7/MySQLdb/constants running build_ext building 'MySQLdb._mysql' extension creating build/temp.macosx-10.9-x86_64-3.7 creating build/temp.macosx-10.9-x86_64-3.7/MySQLdb gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -Dversion_info=(1,4,2,'post',1) -D__version__=1.4.2.post1 -I/usr/local/Cellar/mysql/8.0.19/include/mysql -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c MySQLdb/_mysql.c -o build/temp.macosx-10.9-x86_64-3.7/MySQLdb/_mysql.o gcc -bundle -undefined dynamic_lookup -arch x86_64 -g build/temp.macosx-10.9-x86_64-3.7/MySQLdb/_mysql.o -L/usr/local/Cellar/mysql/8.0.19/lib -lmysqlclient -lssl -lcrypto -o build/lib.macosx-10.9-x86_64-3.7/MySQLdb/_mysql.cpython-37m-darwin.so ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for mysqlclient The easiest and fastest solution to try is: Update your ~/.bash_profile or ~/.bashrc and add this line: export PATH="/usr/local/opt/openssl/bin:$PATH" Reload ~/.bash_profile or ~/.bashrc source ~/.bash_profile