Skip to content

Instantly share code, notes, and snippets.

View david-w-millar's full-sized avatar

David W Millar david-w-millar

View GitHub Profile
@david-w-millar
david-w-millar / geb-script.groovy
Created May 15, 2019 17:53 — forked from crazy4groovy/geb-script.groovy
A gentle intro script for the Geb setup you'll need to do basic web testing/scraping. (browse, navigate, click, download, screenshot)
//updated Jan 12 2013
//check out Geb/Phantomjs integration via RemoteWebDriver support!
@Grapes([
@Grab("junit:junit-dep:4.8.2"),
@Grab("org.codehaus.geb:geb-junit4:0.7.2"), //soon to go 0.9.0
@Grab("org.seleniumhq.selenium:selenium-firefox-driver:2.28.0"),
@Grab("org.seleniumhq.selenium:selenium-remote-driver:2.28.0"),
@Grab("org.seleniumhq.selenium:selenium-support:2.28.0")
])
@david-w-millar
david-w-millar / python_environment_setup.md
Created June 4, 2018 17:56 — forked from Geoyi/python_environment_setup.md
Setting up your python development environment (with pyenv, virtualenv, and virtualenvwrapper)

Overview

When you're working on multiple coding projects, you might want a couple different version of Python and/or modules installed. That way you can keep each project in its own sandbox instead of trying to juggle multiple projects (each with different dependencies) on your system's version of Python. This intermediate guide covers one way to handle multiple Python versions and Python environments on your own (i.e., without a package manager like conda). See the Using the workflow section to view the end result.

Use cases

  1. Working on 2+ projects that each have their own dependencies; e.g., a Python 2.7 project and a Python 3.6 project, or developing a module that needs to work across multiple versions of Python. It's not reasonable to uninstall/reinstall modules every time you want to switch environments.
  2. If you want to execute code on the cloud, you can set up a Python environment that mirrors the relevant
@david-w-millar
david-w-millar / mitmproxy cheat sheet
Created May 12, 2018 01:15 — forked from 2bard/mitmproxy cheat sheet
mitmproxy cheat sheet
Movement:
j, k down, up
h, l left, right (in some contexts)
space page down
pg up/down page up/down
arrows up, down, left, right

Keybase proof

I hereby claim:

  • I am david-w-millar on github.
  • I am dmillar (https://keybase.io/dmillar) on keybase.
  • I have a public key ASCeVaZ1cBtnkhQfIaKNOH2Q_6A65C-FHObiFhTIkeoMGAo

To claim this, I am signing this object: