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 / client.py
Last active August 29, 2015 14:17
Python Socket Program.
import sys
from socket import socket, AF_INET, SOCK_DGRAM
SERVER_IP = '127.0.0.1'
PORT_NUMBER = 5000
SIZE = 1024
print("Test client sending packets to IP {0}, via port {1}\n".format(SERVER_IP, PORT_NUMBER))
mySocket = socket(AF_INET, SOCK_DGRAM)
@dufferzafar
dufferzafar / GSoC 2015 - Proposal.md
Last active August 29, 2015 14:17
Proposal for Google Summer of Code (2015) - Metabrainz

Improvements to CritiqueBrainz

Personal Information

Name: Shadab Zafar

@dufferzafar
dufferzafar / dufferzafar-mb.md
Created March 18, 2015 19:09
MusicBrainz Wiki's User Page

Hi, I am Shadab Zafar, a CS undergrad from India.

I found out about MusicBrainz Picard in Nov 2013 while looking for a tool to tag my songs. A friend then told me that there was a GSoC project on the same tool, I applied for the project and got selected so during 2014's summer, I worked on creating the current Picard's site & API and adding Plugin Download features to Picard.

== Todo List ==

=== Add Data ===

I have a lot of old untagged bollywood music (songs by Lata, Mukesh, Rafi etc.), I've thought of adding it many times, but just couldn't get it done.

@dufferzafar
dufferzafar / GSoC 2015 - Updated Proposal.md
Last active August 29, 2015 14:17
Updated Proposal for GSoC 2015. CritiqueBrainz Project. The previous proposal was a bit too ambitious. #gsoc
@dufferzafar
dufferzafar / Readme.md
Last active August 29, 2015 14:19
Personal Projects Page
@dufferzafar
dufferzafar / Readme.md
Last active August 29, 2015 14:20
DHCP & Mail Server

Setup

git clone https://gist.github.com/dufferzafar/e7328e12332a75951c36 lul-lab

sudo bash mail.sh

Test sending/recieving mail.

sudo bash dhcp.sh

@dufferzafar
dufferzafar / luljmi.sh
Last active August 29, 2015 14:21
Cheating Material For Linux Utility Lab
#####################################################################
# The LuL Cheat Code #
# #
# Editor in chief: #
# #
# pSyCh0_c0d3r #
# #
# Individual Authors: #
# #
@dufferzafar
dufferzafar / some-cb-issues.md
Last active August 29, 2015 14:22
Some CritiqueBrainz Issues

CritiqueBrainz Issues

Language Related

CB-123 - Display review language

CB-89 - Language selector is not working properly

CB-112 - Default language selection doesn't work with language variations

@dufferzafar
dufferzafar / Methods on Sublime
Created June 22, 2015 11:36
Result of dir(sublime)
_LogWriter
active_window
arch
cache_path
channel
CLASS_EMPTY_LINE
CLASS_LINE_END
CLASS_LINE_START
CLASS_PUNCTUATION_END
CLASS_PUNCTUATION_START
@dufferzafar
dufferzafar / Generate a compact word diff.py
Created July 9, 2015 21:23
Generates a compact word diff
import difflib
tags = {'+': ('<ins>', '</ins>'), '-': ('<del>', '</del>'), ' ': (' ', '')}
left = "An edit to create a new revision that the diffs thing. I am now adding some more text so that I can test the diffs."
right = "The beginning has now been changed. An edit to create a new revision that the diffs thing. And make some changes here and there. Let's add a totally new paragraph.\n\nOkay, enough. This is entirely new paragraph. We really need to build a cool diff thingy."
# Generates a compact word diff
prev_start, prev_end = None, ''
prev_item = ''