Make sure you add the app invoking this script is in the Preferences -> Security & Privacy -> Pricavy -> Accessbility
For me, I use it with Alfred, so Alfred 3.app is in the list.
# http://stackoverflow.com/a/12320421 | |
# -9 for better compression | |
# 32 is number of cores to use | |
tar cf - paths-to-archive | pigz -9 -p 16 > archive.tar.gz |
Make sure you add the app invoking this script is in the Preferences -> Security & Privacy -> Pricavy -> Accessbility
For me, I use it with Alfred, so Alfred 3.app is in the list.
on alfred_script(q) | |
tell application "Finder" | |
set pathList to (quoted form of POSIX path of (folder of the front window as alias)) | |
set textToType to "clear; cd " & pathList | |
end tell | |
tell application "System Events" | |
set isRunning to (exists (processes where name is "kitty")) | |
end tell |
find ./src -maxdepth 5 -type f -name *.tsx -exec sed -i '' '1i\ | |
/* eslint-disable */ | |
' {} \; |
With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.
Note that
Between input languages
shotcut from Control Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keys
because it conflicts with cmd + shift + ↑ / ↓ / ← / →
(select text between cursor and top / bottom / beginning of line / end of line)