Skip to content

Instantly share code, notes, and snippets.

View manav148's full-sized avatar

Manav Kundra manav148

View GitHub Profile
@prasadsilva
prasadsilva / fresh-chrome-with-custom-tz.sh
Last active June 4, 2023 12:54 — forked from stuartsierra/fresh-chrome.sh
Launch new instances of Google Chrome on OS X with isolated cache, cookies, user config and custom Timezone
#!/usr/bin/env bash
# fresh-chrome
#
# Use this script on OS X to launch a new instance of Google Chrome
# with its own empty cache, cookies, and user configuration.
#
# The first time you run this script, it will launch a new Google
# Chrome instance with a permanent user-data directory, which you can
# customize below. Perform any initial setup you want to keep on every
@manav148
manav148 / phantomjs.py
Last active August 29, 2015 14:06
A simple class to instantiate phantomjs with selenium in python (with ssl support)
from selenium import webdriver
class PhantomJS(object):
"""
Starting PhantomJS and hooking with Selenium
Instantiate:
with PhantomJS() as phantomjs:
"""
def __init__(self, ssl= True, url = None):