Skip to content

Instantly share code, notes, and snippets.

View Asad-Khan-Aasanjobs's full-sized avatar

Asad@AJ Asad-Khan-Aasanjobs

View GitHub Profile
Asad-Khan-Aasanjobs /
Last active October 28, 2021 05:44
Get element logic for selenium script
Base Page that provides basic page functionality
Positional arguments:
Selenium webdriver instance.
from bs4 import BeautifulSoup
from random import randint
Asad-Khan-Aasanjobs / build.gradle
Created April 2, 2019 05:35 — forked from gpeal/build.gradle
Airbnb Gradle Flavors
apply from: './flavors.gradle'
android {
buildTypes {
productFlavors {
project.flavors.each { flavor, config ->
"$flavor" {
dimension 'scope'
if (flavor != 'full') {
Asad-Khan-Aasanjobs /
Created October 30, 2018 09:18
Port scanning execution script
import math
import multiprocessing
import os
from datetime import datetime
from typing import List
from jinja2 import Environment, FileSystemLoader
from sendgrid import sendgrid, Email
from sendgrid.helpers.mail import Content, Mail
Asad-Khan-Aasanjobs /
Created October 30, 2018 07:20
Scanner Class which takes a GCloud compute instance object and returns port scanning results
from nmap import PortScanner
from gcloud import ComputeInstance
PORT_RANGE = "1-65535"
class InstancePortScanner:
def __init__(self, instance: ComputeInstance):