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
#!/usr/bin/env python3 | |
""" | |
Code referenced from `Stack Exchange \ | |
<https://apple.stackexchange.com/questions/4286/is-there-a-mac-os-x-terminal-version-of-the-free-command-in-linux-systems>`_. | |
**Note**: One need to use Python 3 to run this file! | |
""" | |
import re | |
import subprocess |
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
#!/usr/bin/env python3 | |
# Created at May 2, 2018, by Qi Zhang | |
from abc import abstractmethod | |
import numpy as np | |
import scipy.optimize as optimize | |
class EOS: |
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
#!/usr/bin/env bash | |
find /private/var/folders/ -name com.apple.dock.iconcache -exec trash {} \; | |
find /private/var/folders/ -name com.apple.iconservices -exec trash {} \; | |
trash /Library/Caches/com.apple.iconservices.store |
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
# Makes possible to see Finder menu item "Quit Finder" with default shortcut Cmd + Q. | |
# Enable | |
defaults write com.apple.finder QuitMenuItem -bool true && killall Finder | |
# Disable (Default) | |
defaults write com.apple.finder QuitMenuItem -bool false && killall Finder |
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
# Enable | |
defaults write com.apple.dock static-only -bool true && \ | |
killall Dock | |
# Disable (Default) | |
defaults write com.apple.dock static-only -bool false && \ | |
killall Dock |
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
sudo spctl --master-disable |
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
git config --global credential.helper store |
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
# When copying a remote item’s URL, don’t include the login information (user:password@example.com) in the URL. | |
defaults write com.panic.Transmit CopyURLWithoutLogin 0 |
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
defaults write com.apple.dock mineffect -string 'suck'; killall Dock |
OlderNewer