Skip to content

Instantly share code, notes, and snippets.

View commentfuckery's full-sized avatar

Comment Fuckery commentfuckery

View GitHub Profile
@commentfuckery
commentfuckery / comment_2.go
Created November 22, 2017 22:11
//ssl lab bullshit
if useSSL {
w.Header().Add("Strict-Transport-Security", "max-age=63072000; includeSubDomains") //ssl lab bullshit
}

Keybase proof

I hereby claim:

  • I am commentfuckery on github.
  • I am smother (https://keybase.io/smother) on keybase.
  • I have a public key whose fingerprint is ABD3 A17B 4BC0 D013 940C 92B0 0A90 A4AA 65D8 A5BE

To claim this, I am signing this object:

@commentfuckery
commentfuckery / cookieJar.go
Created November 13, 2017 17:19
Comment Fuckery
Jar: cookieJar, // I stole the cookie from the cookie jar
@commentfuckery
commentfuckery / scrape.py
Created September 5, 2017 19:35
Web Scraping for Email Addresses and Phone numbers using Python
# Small Python Script to scrape websites for
# email addresses and phone numbers(not a very great RE)
# Author: Dhruv Baldawa (@dhruvbaldawa on twitter)
# Github: http://www.github.com/dhruvbaldawa
import urllib,re
f = urllib.urlopen("http://www.example.com")
s = f.read()
re.findall(r"\+\d{2}\s?0?\d{10}",s)
re.findall(r"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}",s)
@commentfuckery
commentfuckery / wtf.go
Last active September 2, 2017 04:47
Comment of the day
// wtf has function to create from byte and not read from??