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
# restart_pycharm.sh | |
# | |
# A shell function to gracefully restart PyCharm on macOS. | |
# Usage: source this file or copy the function into your ~/.zshrc or ~/.bashrc, | |
# then run `restartPyCharm` from your terminal. | |
# You may need to verify the Quit PyCharm shortcut key from the menu: Command + Shift + 9 | |
# | |
# Author: SHi-ON | |
restartPyCharm() { |
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
# my_activity_safari.sh | |
# | |
# Function: myActivitySafari | |
# | |
# Description: | |
# Preview your 50 most recent Safari browsing history entries on macOS, | |
# using Quick Look. This function queries Safari’s local SQLite history, | |
# previews the results, and removes the temporary file so it can be run | |
# again without file conflicts. | |
# |
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
# quitExcel.sh | |
# | |
# Function: quitExcel | |
# | |
# Description: | |
# Saves all open workbooks in Microsoft Excel and then quits the application, | |
# using AppleScript. Useful for closing Excel from the terminal and ensuring | |
# all data is saved. | |
# | |
# Usage: |
OlderNewer