Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Shadab Zafar dufferzafar

🏠
Working from home
View GitHub Profile
@dufferzafar
dufferzafar / ghsize.py
Created Oct 10, 2017
Calculate size of GitHub Archive data for a date range
View ghsize.py
"""
Find out total size of the JSON files of GitHub Archive
in a particular date range.
"""
import requests
from datetime import timedelta, datetime
URL = "http://data.githubarchive.org/%s.json.gz"
@dufferzafar
dufferzafar / Linux Automation using Python.md
Created Sep 30, 2017
Research notes on having an AHK alternative for Linux.
View Linux Automation using Python.md

Linux Automation using Python

boppreh/keyboard

  • Supports binding functions to keyboard hotkeys

  • Also has hotstrings (abbreviations)

    • These didn't properly work during my testing!
@dufferzafar
dufferzafar / mininetSocketTest.py
Last active Nov 1, 2018 — forked from bocon13/mininetSocketTest.py
Difference from the fork: PEP8 + Fix "Could not find a default OpenFlow controller" issue
View mininetSocketTest.py
#!/usr/bin/python
from mininet.node import OVSController
from mininet.topo import SingleSwitchTopo
from mininet.net import Mininet
from mininet.log import lg
from mininet.cli import CLI
@dufferzafar
dufferzafar / Behaviourial Questions.md
Created May 25, 2017
Research done when beginning to prepare for Google Interview.
View Behaviourial Questions.md

Interview Questions

Questions that you may be asked on an interview.

  • What was the biggest technical challenge I faced?

    • How did I solve it?
  • Some situations where you were working on a tech project and things went well?

@dufferzafar
dufferzafar / iiitv-interview-avi.md
Last active Jan 19, 2019
GSoC Experience Interview for @aviaryan's College Magazine
View iiitv-interview-avi.md

Tell us three things about GSoc that most people are unaware of.

i) A lot of the people forget the fact that all the organizations have other work to do apart from GSoC. I've seen a lot of students on IRC channels who assume that everyone is only there to help GSoC candidates; they ask for help and when nobody replies - they get irritated and take it out on them.

ii) A bit related to this is the fact that most of the students are very new to professional communication, and have just no idea about how to talk to people on IRC or mailing lists.

iii) People also need to understand that helping the community is the real goal of any project. Sutdents usually just focus on the code they are writing while totally ignoring public forums and the problem real users of their project face.

Please describe you experience working with some of the sharpest minds in your field.

@dufferzafar
dufferzafar / interviewitems.MD
Created Dec 8, 2016 — forked from KWMalik/interviewitems.MD
My answers to over 100 Google interview questions
View interviewitems.MD

##Google Interview Questions: Product Marketing Manager

  • Why do you want to join Google? -- Because I want to create tools for others to learn, for free. I didn't have a lot of money when growing up so I didn't get access to the same books, computers and resources that others had which caused money, I want to help ensure that others can learn on the same playing field regardless of their families wealth status or location.
  • What do you know about Google’s product and technology? -- A lot actually, I am a beta tester for numerous products, I use most of the Google tools such as: Search, Gmaill, Drive, Reader, Calendar, G+, YouTube, Web Master Tools, Keyword tools, Analytics etc.
  • If you are Product Manager for Google’s Adwords, how do you plan to market this?
  • What would you say during an AdWords or AdSense product seminar?
  • Who are Google’s competitors, and how does Google compete with them? -- Google competes on numerous fields: --- Search: Baidu, Bing, Duck Duck Go
@dufferzafar
dufferzafar / menu_launcher.py
Created Nov 3, 2016 — forked from abishur/menu_launcher.py
A simple menu system using python for the Terminal (Framebufer)
View menu_launcher.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Topmenu and the submenus are based of the example found at this location http://blog.skeltonnetworks.com/2010/03/python-curses-custom-menu/
# The rest of the work was done by Matthew Bennett and he requests you keep these two mentions when you reuse the code :-)
# Basic code refactoring by Andrew Scheller
from time import sleep
import curses, os #curses is the interface for capturing key presses on the menu, os launches the files
screen = curses.initscr() #initializes a new window for capturing key presses
curses.noecho() # Disables automatic echoing of key presses (prevents program from input each key twice)
@dufferzafar
dufferzafar / exif1.py
Created Sep 9, 2016
Read position data from EXIF tags of images.
View exif1.py
import sys
from PIL import Image
from PIL.ExifTags import TAGS, GPSTAGS
def get_exif_data(image):
"""Returns a dictionary from the exif data of an PIL Image item. Also converts the GPS Tags"""
exif_data = {}
info = image._getexif()
if info:
@dufferzafar
dufferzafar / keybase.md
Created Aug 20, 2016
Verifying myself on keybase.
View keybase.md

Keybase proof

I hereby claim:

  • I am dufferzafar on github.
  • I am dufferzafar (https://keybase.io/dufferzafar) on keybase.
  • I have a public key whose fingerprint is 9903 A55E 412A 2614 3518 4848 7D1E 8774 BDBC 7C1D

To claim this, I am signing this object:

@dufferzafar
dufferzafar / design-time-tracker.md
Last active May 4, 2020
Design of an open source, cross platform, time tracking application.
View design-time-tracker.md

Time Tracker

Build a Manic Time alternative.

The application would be in two parts:

  • a tracker agent that dumps data into some backend
    • should be dumb and not do much processing of the data
  • a reporting dashboard which will show various timelines, statistics etc.