Skip to content

Instantly share code, notes, and snippets.

View geoffbelknap's full-sized avatar

Geoff Belknap geoffbelknap

View GitHub Profile

Keybase proof

I hereby claim:

  • I am geoffbelknap on github.
  • I am geoffbelknap (https://keybase.io/geoffbelknap) on keybase.
  • I have a public key whose fingerprint is D3D9 15D3 2DCB C29F 0008 A2B5 6D64 12B6 D468 09EE

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am geoffbelknap on github.
* I am geoffbelknap (https://keybase.io/geoffbelknap) on keybase.
* I have a public key whose fingerprint is EAF1 3425 042C 30BC A660 0271 C0F4 CFAB 42F6 216E
To claim this, I am signing this object:
@geoffbelknap
geoffbelknap / Screen Scrape IPs.rb
Created February 28, 2010 02:16
IP Screen Scraper
response = open(target_uri, 'User-Agent' => 'Ruby-Wget').read
ip_scrape = Regexp.new('\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b')
targets = response.scan(ip_scrape)