Skip to content

Instantly share code, notes, and snippets.

View andrewsmhay's full-sized avatar

Andrew Hay andrewsmhay

View GitHub Profile

Keybase proof

I hereby claim:

  • I am andrewsmhay on github.
  • I am andrewsmhay (https://keybase.io/andrewsmhay) on keybase.
  • I have a public key whose fingerprint is CAC5 46C4 B1B4 4256 699F C352 440C 3F87 30F3 36C1

To claim this, I am signing this object:

1-800-mlbshop.com
1-800-shopmlb.com
1-888-mlbshop.com
1-888mlbshop.com
120sports.com
1800-mlbshop.com
1800mlbshop.com
1800shopmlb.com
1877mlbshop.com
188mlbshop.com

Keybase proof

I hereby claim:

  • I am andrewsmhay on github.
  • I am andrewsmhay (https://keybase.io/andrewsmhay) on keybase.
  • I have a public key whose fingerprint is C56E 7090 B60E FD60 D862 CBD9 E6B4 3CCF 609C 7387

To claim this, I am signing this object:

@andrewsmhay
andrewsmhay / regex
Created December 16, 2014 23:59
Regex that needs some convertin'
_^(?:(?:https?|ftp)://)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,})))(?::\d{2,5})?(?:/[^\s]*)?$_iuS

Description

A Dashing widget to display the number of issues returned by a Jira filter search. The number of issues will be displayed using the Numbers widget. See also the Atlassian Jira: Number of issues in a Jira filter query for a more generalised version which allows to run any JQL query directly from the widget.

Dependencies

The following dependencies are required. Please add them to your dashing gemfile.

gem 'jira-ruby', :require => 'jira'
@andrewsmhay
andrewsmhay / s4links
Created September 19, 2014 14:31
#S4con Links
I've got host scan data that I've imported into MongoDB in the following format:
{
"_id" : ObjectId("52fd928c62c9815b36f66e68"),
"date" : "1/1/2014",
"scanner" : "123.9.74.172",
"csp" : "aws",
"ip" : "126.34.44.38",
"port" : 445,
"latt" : 35.685,