Skip to content

Instantly share code, notes, and snippets.

View alphaguy4's full-sized avatar
:octocat:
Hello there

Kartikay singh alphaguy4

:octocat:
Hello there
  • Microsoft India
  • Bangalore, India
  • 17:46 (UTC +05:30)
View GitHub Profile
@alphaguy4
alphaguy4 / runParallelTest.gradle
Created November 2, 2019 05:29
This script enables an android project to run it's intrumentation test parallely on multiple emulators by sharding using spoon framework.
/*
* Include this file into main build.gradle of the project.
* Replace the task connectedPlaystoreDebugAndroidTest with
* parallelInstrumentationRun to run test in parallel
*/
configurations.create('spoonTest').transitive(false)
dependencies {
spoonTest group:'com.squareup.spoon', name:'spoon-runner', version:'1.7.1', classifier: 'jar-with-dependencies', ext: 'jar'
}
@alphaguy4
alphaguy4 / isup.py
Created February 27, 2017 13:41
Python Script which check if a given website is online and start a new session in default browser.
"""
Simple Script to inform you when the website is up and automatically starts a new session in default browser
This script assumes the url entered is valid.
Author:alphaguy4
"""
import requests
import sys
import time
import webbrowser
@alphaguy4
alphaguy4 / tmux.md
Created September 10, 2016 12:05 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@alphaguy4
alphaguy4 / gmail.py
Created July 27, 2016 13:26 — forked from jasonrdsouza/gmail.py
Python script to access a gmail account and download particular emails
import email, getpass, imaplib, os
detach_dir = '.' # directory where to save attachments (default: current)
user = raw_input("Enter your GMail username:")
pwd = getpass.getpass("Enter your password: ")
# connecting to the gmail imap server
m = imaplib.IMAP4_SSL("imap.gmail.com")
m.login(user,pwd)
m.select("cs2043") # here you a can choose a mail box like INBOX instead