Skip to content

Instantly share code, notes, and snippets.

View ProProgrammer's full-sized avatar

Deep Sukhwani ProProgrammer

View GitHub Profile
@abdennebi
abdennebi / install-minikube-ubuntu.md
Last active September 16, 2018 12:56
Install Minikube on Ubuntu

1 - Install Virtualbox

sudo apt install virtualbox-qt

2 - Install Minikube

curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.18.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

3 - Install kubectl

@eliangcs
eliangcs / pyenv+virtualenv.md
Last active June 8, 2023 07:46
Cheatsheet: pyenv, virtualenvwrapper, and pip

Cheatsheet: pyenv, virtualenvwrapper, and pip

Installation (for Mac OS)

Install pyenv with brew

brew update
brew install pyenv
@adamgoucher
adamgoucher / gist:3921739
Created October 20, 2012 02:22
how to use webdriver with py.test fixtures
from selenium.webdriver import Firefox
import pytest
class TestHighcharts(object):
@pytest.fixture(autouse=True)
def fixture(self, request):
request.instance.driver = Firefox()
request.instance.driver.get("http://localhost:9000")
def cleanup():
request.instance.driver.quit()
@jaytaylor
jaytaylor / dbhelper.py
Created March 13, 2012 18:12
Python Database Helper
import MySQLdb
##
# @author Jay Taylor [@jtaylor]
# @date 2010-11-15
#
# @description This is a basic database helper script which will setup the connection.
#
# @requirements The MySQLdb package must be installed, i.e. `sudo easy_install MySQLdb`
#
@casschin
casschin / gist:1990245
Created March 7, 2012 01:16
Python webdriver api quick sheet
### Locating UI elements ###
# By ID
<div id="coolestWidgetEvah">...</div>
element = driver.find_element_by_id("coolestWidgetEvah")
or
from selenium.webdriver.common.by import By
element = driver.find_element(by=By.ID, value="coolestWidgetEvah")
# By class name: