Skip to content

Instantly share code, notes, and snippets.

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

Shadab Zafar dufferzafar

🏠
Working from home
View GitHub Profile
@dufferzafar
dufferzafar / Linux Automation using Python.md
Created September 30, 2017 12:29
Research notes on having an AHK alternative for Linux.

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 November 1, 2018 03:04 — forked from bocon13/mininetSocketTest.py
Difference from the fork: PEP8 + Fix "Could not find a default OpenFlow controller" issue
#!/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 13:58
Research done when beginning to prepare for Google Interview.

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 January 19, 2019 07:38
GSoC Experience Interview for @aviaryan's College Magazine

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 December 8, 2016 10:33 — forked from KWMalik/interviewitems.MD
My answers to over 100 Google interview questions

##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 November 3, 2016 18:15 — forked from abishur/menu_launcher.py
A simple menu system using python for the Terminal (Framebufer)
#!/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 September 9, 2016 05:41
Read position data from EXIF tags of images.
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 August 20, 2016 12:31
Verifying myself on keybase.

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 March 15, 2023 00:19
Design of an open source, cross platform, time tracking application.

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.
@dufferzafar
dufferzafar / IIT JEE Books.txt
Created August 16, 2016 18:18
List of Books for IIT JEE Preparation.
Physics
HC Verma Concept of Physics Part 1.
HC Verma Concept of Physics Part 2.
IIT JEE Physics by D.C. Pandey.
Problems in General Physics by I.E. Irodov.
Physics for IIT JEE by Resnick, Halliday, Walker.
Problems in Physics by S.S. Krotov.
Chemistry