Nice little Sublime plugin by davidpeckham that allows you to find all lines matching a string or a regular expression in Sublime. After installing, on Mac, you’ll search to include lines with Regex ⌘+K then ⌘+R. That will bring up the search box. To include lines with a string use ⌘+K then ⌘+S.
Plugin available at https://github.com/davidpeckham/sublime-filterlines
I needed a quick way to take my several thousand plus list of numbers and remove all duplicates. Just a one off task where I didn’t care about the original order of the list, only that there should be no duplicates. Enter python! Here’s how I did it.
- Open Terminal on Mac
- Type “python” and execute
- Format my numbers in an array like [39213123667, 532092995671, 659203651894,… in a text editor for easy copy and paste
- Use python’s set to remove duplicates and then convert back to a list and print out:
listWithDuplicates = [39213123667, 532092995671, 659203651894,...
# sets are unordered collections of distinct objects
deduplicated = list(set(listWithDuplicates))
# used this to see how many duplicates were removed
# print out list to start doing real work
To see issues in Jira that I am watching but are not assigned to me I created a new filter
issue in watchedIssues() AND assignee not in (currentUser())
Go to the filters view, select advanced, paste in the jql provided.
If you want to get fancy you could add another condition to show unresolved tickets like
issue in watchedIssues() AND assignee not in (currentUser()) AND resolution = Unresolved
Locate your java home directory by executing in Termal
This will return the full path to your java home directory on your Mac. Change into that directory and then you will be able to run the java keytool from there.
Here is a log of what I ran in Terminal on my Mac:
$ cd /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home