Skip to content

Instantly share code, notes, and snippets.

View kevinelong's full-sized avatar
💭
Blitting Bits

Kevin Ernest Long kevinelong

💭
Blitting Bits
View GitHub Profile
@kevinelong
kevinelong / wget_spider_https
Created August 8, 2016 21:42 — forked from jesstess/wget_spider_https
Use wget to spider a site as a logged-in user.
http://addictivecode.org/FrequentlyAskedQuestions
To spider a site as a logged-in user:
1. post the form data (_every_ input with a name in the form, even if it doesn't have a value) required to log in (--post-data).
2. save the cookies that get generated (--save-cookies), including session cookies (--keep-session-cookies), which are not saved when --save-cookies alone is specified.
2. load the cookies, continue saving the session cookies, and recursively (-r) spider (--spider) the site, ignoring (-R) /logout.
# log in and save the cookies
wget --post-data='username=my_username&password=my_password&next=' --save-cookies=cookies.txt --keep-session-cookies https://foobar.com/login
@kevinelong
kevinelong / recommended_git_process.txt
Created June 12, 2015 19:20
RECOMMENDED GIT PROCESS
@kevinelong
kevinelong / python_dictionaries.py
Created June 12, 2015 18:29
Python Dictionaries
# create a new empty dictionary
me = {}
# annother way to do the same
me = dict()
#define two new keys for first and last name
me["first"] = "Kevin"
me["last"] = "Long"
#we often see this done in short hand all at once e.g.:
### Keybase proof
I hereby claim:
* I am kevinelong on github.
* I am kevinelong (https://keybase.io/kevinelong) on keybase.
* I have a public key whose fingerprint is F48C 7BFF B036 0E75 41F1 A24F 64ED DD96 BB70 55C5
To claim this, I am signing this object:
@kevinelong
kevinelong / dabblet.css
Created April 29, 2013 15:57
A "deeper" indented text effect with the :before and :after pseudo-elements.
/**
* A "deeper" indented text effect with the :before and :after pseudo-elements.
*/
html, body {
height: 100%;
}
body {
margin: 0;