Skip to content

Instantly share code, notes, and snippets.

View saifazmi's full-sized avatar
🏠
Working from home

Saif Azmi saifazmi

🏠
Working from home
View GitHub Profile
@saifazmi
saifazmi / download.all.adp.paystubs.js
Last active March 25, 2022 10:59 — forked from azagniotov/download.all.adp.paystubs.js
Downloads all pay-slips from ADP website
/*
This has been tested in Chrome v99.0.4844.83 (Official Build) (x86_64)
1. Log into ADP website using the URL: https://my.adp.com/static/redbox/login.html (Make sure you are NOT in Incognito mode)
2. Open Developer Tools console
3. Run the following code in the console:
*/
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://my.adp.com/v1_0/O/A/payStatements?adjustments=yes&numberoflastpaydates=999');
@saifazmi
saifazmi / Dockerfile
Created April 14, 2019 17:41 — forked from orenitamar/Dockerfile
Installing numpy, scipy, pandas and matplotlib in Alpine (Docker)
# Below are the dependencies required for installing the common combination of numpy, scipy, pandas and matplotlib
# in an Alpine based Docker image.
FROM alpine:3.4
RUN echo "http://dl-8.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk --no-cache --update-cache add gcc gfortran python python-dev py-pip build-base wget freetype-dev libpng-dev openblas-dev
RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
RUN pip install numpy scipy pandas matplotlib
@saifazmi
saifazmi / HTML5_template.html
Last active March 15, 2017 09:59 — forked from saifullah-azmi/gist:7b0f1c5a9e20d0299e1b
Snippet: HTML5 starting template
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="assets/img/favicon.ico" />
<title>__Hello_Web__</title>
<!-- External Stylesheets here (as needed) -->
@saifazmi
saifazmi / min_bash_term.sh
Last active March 7, 2017 16:21 — forked from saifullah-azmi/gist:12a9aad1db9f334c1020
Minimalistic terminal settings
#Minimalistic
#Colors
lineandtime=$(tput setaf 2)
location=$(tput setaf 4)
prompt=$(tput setaf 5)
reset=$(tput sgr0)
export PS1='\[$lineandtime$(tput smso)\][\#] <\A>\[$reset$location\] \W \[$prompt\]% \[$reset\]'
@saifazmi
saifazmi / getuserpass.py
Last active August 3, 2018 10:32 — forked from saifullah-azmi/getuserpass.py
Generates a txt file containing a combination of [user:password] for all passwords cracked using John the Ripper for a given passwd file.
#!/usr/bin/python
###############################################################################
# IMPORTANT:
# Place this script in $JOHN/run/ directory.
#
# USAGE:
# $ python <scriptname>.py <passwdfile> <outfile>
# Where -
# scriptname = name of this script.
# passwdfile = passwd file cracked by JtR.