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');
Verifying my Blockstack ID is secured with the address 1AZeAwkpNU7DpdpFYa1mjddSNxCHApm5nm https://explorer.blockstack.org/address/1AZeAwkpNU7DpdpFYa1mjddSNxCHApm5nm
@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 / btcprice.py
Last active December 13, 2017 00:20
A simple Bitcoin price checker using coindesks api
#!/usr/bin/python
import json
import requests
URL = "https://api.coindesk.com/v1/bpi/currentprice.json"
response = requests.get(URL)
jsonResponse = json.loads(response.text)
@saifazmi
saifazmi / gmap_marker_info.js
Last active March 23, 2017 16:29
Snippet: JS function to intialise a GMap with a marker and infoWindow
function initMap() {
// Office lat lang
var officeLatLang = {
lat: -25.363,
lng: 131.044
};
// infoWindow content string
var infoContent = '<p>55 Dangal Road,<br>' +
'Vikas Nagar, Lucknow<br>' +
@saifazmi
saifazmi / MDL_Basic-Template.html
Created March 15, 2017 11:10
Snippet: MDL basic layout 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>
<!-- @NOTE: External Stylesheets here (as needed) -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
@saifazmi
saifazmi / keybase.md
Last active February 21, 2017 11:27
GitHub proof for Keybase.io

Keybase proof

I hereby claim:

  • I am saifazmi on github.
  • I am saifazmi (https://keybase.io/saifazmi) on keybase.
  • I have a public key whose fingerprint is 9FF9 AC07 AD5D 0633 11DA 5CD5 9C7F F3C7 2A8C 4685

To claim this, I am signing this object:

@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.