-
Moving windows between Spaces (⌃⌘ arrows): Rectangle can't move windows between Spaces, so I left these shortcuts out. If you rely on them, you'll need a separate tool such as yabai.
-
Centre and resize: Rectangle's own "Center" action only moves the window and doesn't resize it. I used its "Specified" action instead, which centres the window at 800×600. It doesn't show in the settings window, so you can't change it there. To change the size later, edit
specifiedWidth/specifiedHeight
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
| # Replace built in nano | |
| # brew install nano | |
| # Enable syntax highlighting | |
| include "/opt/homebrew/share/nano/*.nanorc" | |
| # Enable line numbers | |
| set linenumbers | |
| # Enable mouse support (click to position cursor, scroll) |
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
| # https://help.dropbox.com/sync/ignored-files#mac2 | |
| # file | |
| xattr -w com.dropbox.ignored 1 '/Users/yourname/Dropbox (Personal)/YourFileName.pdf' | |
| # all files in your folder, note trailing slash | |
| xattr -w com.dropbox.ignored 1 '/Users/yourname/Dropbox (Personal)/your_folder/' | |
| # to remove, delete the xattr, may need to restart Dropbox for it to see the change | |
| xattr -d com.dropbox.ignored '/Users/yourname/Dropbox (Personal)/your_folder/' |
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
| # Looker splits query strings with commas | |
| # To filter for a string containing a comma you need to escape the comma or Looker splits the string at the comma | |
| # The documentation is poor in this area | |
| # Example | |
| Plumbers, heating engineers and technicians | |
| # Is split to | |
| Plumbers | |
| heating engineers and technicians |
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
| pkill -f "string" |
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
| grep "your_string" your_file.csv | wc -l |
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
| // Jira JQL Done, updated today, or updated yesterday, or updated Friday | |
| status = Done AND (updated > startofday() OR (updated > -1d) OR (updated <= startofWeek() AND updated > -3d)) | |
| // Jira JQL resolved, resolved today, or resolved yesterday, or resolved Friday | |
| status = Done AND (resolved > startofday() OR resolved > -1d OR resolved <= startofWeek() AND resolved > -3d) |
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
| AND Labels != XYZ | |
| # Jira returns only cards with a label but not XYZ | |
| # does not return cards without a label, which is unexpected when you first think of it | |
| # is returning cards with labels, specifically labels !=XYZ | |
| # Solution: be explicit | |
| AND (Labels is null OR Labels != XYZ) | |
| # returns all cards without a label or a label which is not XYZ |
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
| osascript -e 'quit app "APPLICATIONNAME"' | |
| i.e. | |
| osascript -e 'quit app "Calculator"' | |
| I used this before running a rsync (well Grsync actually) script, | |
| so my database application wasn't running while it was backed up. |
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
| on run {input, parameters} | |
| (* This script takes a selection of files, appends them to individual emails to a predetermined address | |
| using the filename as the subject of the email and then sends it *) | |
| set mgPeople to "YourSenderName" | |
| set mgAddress to "your.email@address.com" | |
| --set mgAddress to "debug.mail@address.com" --debug address | |
| set theSender to "debug.mail@address.com" | |
| set mgContent to "" |
NewerOlder