This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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:[email protected]) in the URL. | |
| defaults write com.panic.Transmit CopyURLWithoutLogin 0 |
This file contains hidden or 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 |
This file contains hidden or 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
| # Referenced from | |
| # https://stackoverflow.com/questions/49304329/how-to-show-all-elements-of-vectors-and-matrices-in-julia | |
| function showall(io, x, limit = true) | |
| println(io, summary(x), ":") | |
| Base.print_matrix(IOContext(io, :limit => limit), x) | |
| end |
OlderNewer