Skip to content

Instantly share code, notes, and snippets.

View jphalip's full-sized avatar

Julien Phalip jphalip

View GitHub Profile
@jphalip
jphalip / gist:4614527
Last active December 11, 2015 14:29
Bash script for a Chef recipe to install PIL with Zlib and Freetype support in a Vagrant Ubuntu 32bit box. I wish PIL offered a cleaner way of doing this other than having to modify its setup.py.
%w{libjpeg-dev libfreetype6-dev}.each do |pkg|
package pkg do
action :install
end
end
bash "Install PIL from source" do
user vagrant
group vagrant
code <<-EOH
@pamelafox
pamelafox / selenium_page.py
Created November 30, 2011 22:48
Selenium Utility Funcs
from selenium.common.exceptions import NoSuchElementException, TimeoutException, WebDriverException
class SeleniumPage(object):
driver = None
waiter = None
def open_page(self, url):
self.driver.get(url)