Navigation Menu

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 / NCERT Textbooks.md
Created September 20, 2020 16:24
Download Links for all NCERT textbook PDFs
@dufferzafar
dufferzafar / userChrome.css
Created July 5, 2020 08:45
Firefox userChrome +TreeStyleTabs -ShadowFox
/* Make fonts bigger.*/
window[windowtype="Places:Organizer"] treechildren::-moz-tree-cell-text
{ font-size: 18px !important; }
window[windowtype="Places:Organizer"] treechildren::-moz-tree-row
{ height: 25px !important; }
/*###########################################################################################################*/
/*
@dufferzafar
dufferzafar / kde-services.py
Created May 24, 2020 09:54
Rofi modi for KDE services
#!/usr/bin/env python3
import os
import sys
import glob
import itertools
import subprocess
from configparser import ConfigParser
[
{ "Path": "/mnt/Data/Android Sync/GATE/Algorithms & Data Structures/Notes/CS 106 B/2016", "Score": {"Weight":14, "Age":"2018-09-03T15:37:08.64200953+05:30"} },
{ "Path": "/home/dufferzafar/dev/massren", "Score": {"Weight":24, "Age":"2018-09-03T15:37:08.64200953+05:30"} },
{ "Path": "/home/dufferzafar/dev/tagtool", "Score": {"Weight":14, "Age":"2018-09-03T15:37:08.64200953+05:30"} },
{ "Path": "/mnt/Data/Android Sync/GATE", "Score": {"Weight":20, "Age":"2018-09-03T15:37:08.64200953+05:30"} },
{ "Path": "/home/dufferzafar/dev/@alpha/jmp-runner/krunner-bridge", "Score": {"Weight":14, "Age":"2018-09-03T15:37:08.64200953+05:30"} },
{ "Path": "/home/dufferzafar/dev/@alpha/jmp-runner/krunner-bridge/build", "Score": {"Weight":10, "Age":"2018-09-03T15:37:08.64200953+05:30"} },
{ "Path": "/home/dufferzafar/.mozilla/firefox/54negid3.default/chrome", "Score": {"Weight":22, "Age":"2018-09-03T15:37:08.64200953+05:30"} },
{ "Path": "/home/dufferzafar/dev/@clones/cpython-3.7.0", "Score": {"Weight":10, "Age":"2018-09-03T15:
@dufferzafar
dufferzafar / CV of failures - Melanie Stefan.md
Last active September 3, 2018 07:27
Notes on failure by other people

Taken from: https://www.nature.com/naturejobs/science/articles/10.1038/nj7322-467a

A couple of months ago, I received a letter informing me that my fellowship application had failed. On the same day, Brazil's World Cup squad announced that football phenomenon Ronaldinho had not been selected. “Cool,” I thought. “I am like Ronaldinho.” But that thought offered only little consolation. No scientist enjoys such failures, but too often we hide them.

In a way, a fellowship rejection is to be expected. Most of these fellowships have success rates of about 15%, meaning that an applicant might be successful in only one out of every seven tries. For every hour I've spent working on a successful proposal, I've spent six hours working on ones that will be rejected. I don't mind the extra work — after all, if I abhorred tedious tasks with low chances of success, I would not be in research.

Even so, this means that for every endorsement, there are about six challenges to my ability, my determination and my visi

{
"AM": {
"AML713": {
"Question-Papers": {
"Minor2": {
"[Fall17]-Minor2.jpeg": "/media/database/AM/AML713/Question-Papers/Minor2/[Fall17]-Minor2.jpeg"
}
}
}
},
@dufferzafar
dufferzafar / YouTube Subscriptions.rss
Last active November 25, 2018 06:12
My Youtube Subscriptions
<opml version="1.1">
<body>
<outline text="YouTube Subscriptions" title="YouTube Subscriptions">
<outline text="Linus Tech Tips" title="Linus Tech Tips" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCXuqSBlHAE6Xw-yeJA0Tunw"/>
<outline text="TechLinked" title="TechLinked" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCeeFfhMcJa1kjtfZAGskOCA"/>
<outline text="Techquickie" title="Techquickie" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UC0vBXGSyV14uvJ4hECDOl0Q"/>
<outline text="saurabhschool" title="saurabhschool" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCZSfwNcYIpqO8B9wnBg4HWA"/>
<outline text="Official Trailers Zone" title="Official Trailers Zone" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UC13ETuIRLcejynMYPkxPiLA"/>
<outline text="Popular on YouTube - Worldwide" title="Popular on YouTube - W
@dufferzafar
dufferzafar / commands.sh
Created November 9, 2017 06:50
Connecting to both WiFi and LAN on IIT Delhi; using WiFi for Internet and LAN for connection to baadal machines
# Connect to both LAN and WiFi
# Add route that you want to connect to via LAN
# (eg: the machines we wanted to connect to had 10.17.6.*)
route add -net 10.17.6.0 netmask 255.255.255.0 dev enp3s0
# Now delete default LAN route
route del default dev enp3s0
# Now confirm that the default entry routes to wlp2s0
@dufferzafar
dufferzafar / mpv-gof-lag.log
Created October 11, 2017 15:40
Investigating why Goblet of Fire lags on mpv (but not on VLC)
# using mpv config files
https://github.com/dufferzafar/dotfiles/blob/master/mpv/mpv.conf
https://github.com/dufferzafar/dotfiles/blob/master/mpv/input.conf
$ uname -a
Linux dell-inspiron-7560 4.10.0-35-generic #39~16.04.1-Ubuntu SMP Wed Sep 13 09:02:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
@dufferzafar
dufferzafar / ghsize.py
Created October 10, 2017 08:57
Calculate size of GitHub Archive data for a date range
"""
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"