Filter lines by matching string or regex in Sublime

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

Remove Duplicates From List – Quick and Easy

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.

  1. Open Terminal on Mac
  2. Type “python” and execute
  3. Format my numbers in an array like [39213123667, 532092995671, 659203651894,… in a text editor for easy copy and paste
  4. 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

Jira Filter – See my watched issues not assigned to me

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

Running the Java Keytool on Mac

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:

$ /usr/libexec/java_home
$ cd /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
$ keytool

keytool documentation