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 "[email protected]" | |
--set mgAddress to "[email protected]" --debug address | |
set theSender to "[email protected]" | |
set mgContent to "" |
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
//Open Terminal | |
cd ~/Library/Preferences | |
rm com.apple.finder.plist //Delete Finder's property list | |
sudo killall Finder //Kills Finder which should prompt OS X to restart it automatically | |
//Optional manual restart of Finder | |
open /System/Library/CoreServices/Finder.app | |
//Adapted from http://www.jgoode.com/easy-fix-for-mac-finder-preview-thumbnails-not-displaying/ |
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} | |
tell application "Finder" | |
set fileName to selection as alias | |
set fileName to POSIX path of fileName | |
set firstPart to "[img[" & fileName | |
set imagePath to firstPart & "]]" | |
set the clipboard to imagePath | |
end tell |
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
pdfunite in-1.pdf in-2.pdf in-n.pdf out.pdf |
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
#User downloads a pdf but it's an image only document and the text cannot be searched | |
#open a terminal | |
#brew install tesseract (unless you already have it installed) | |
#open the document in Preview and export to a Tiff document (multipage is supported, 150dpi seems ok | |
#change to the file directory in terminal to save you the bother of putting the full path in | |
#tesseract filename.tiff outputfilename pdf | |
#tesseract then crunches through your file and creates an output file with the specified name and filetype |
NewerOlder