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 / build-tmux.sh
Created February 28, 2023 12:17
Build tmux
#!/usr/bin/bash
# Last modified: 2022/01/26 08:52:11
# Install latest version of Tmux, libevent, ncurse as root.
# local user install
# tmux will be installed in $BUILD/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
@dufferzafar
dufferzafar / syn_flood.py
Created November 28, 2015 15:57
Pure Python SYN Flood Implementation. Code taken from: http://m.oschina.net/blog/85065
'''
Syn flood program in python using raw sockets (Linux)
Silver Moon (m00n.silv3r@gmail.com)
'''
# some imports
import socket, sys
from struct import *
@dufferzafar
dufferzafar / ddcavcontrol.init.lua
Created July 28, 2022 05:55 — forked from waydabber/ddcavcontrol.init.lua
Hammerspoon script to control a Display via DDC (brighness, volume) and a Yamaha AV (network) using standard Mac keyboard with MacOS OSD
-- ddcavcontrol
-- v1.2.1
-- This Hammerspoon script is intended to do the following:
-- 1) Control External Display Brightness via DDC (utilizing a proper brightness+contrast curve)
-- 2) Control External Display Volume via DDC
-- 3) Control Digital AV Volume via Network (currently works with Yamaha AVs)
-- 4) Use the standard brightness and volume keys of an Apple keyboards
-- 5) Display the standard MacOS OSD as expected
@dufferzafar
dufferzafar / 00-ssh-tmux-iterm.md
Created May 3, 2022 04:50 — forked from lukasnellen/00-ssh-tmux-iterm.md
Summary of my remote tmux and ssh configuration to benefit from the iterm2-tmux integration, with ssh authentication socket refreshing

Configuration to use remote tmux over ssh in iterm

This is a compilation of information I found in different postings on the net.

All manual invocation

Basic remote tmux session

tmux can be invoked in command mode using tmux -CC. The simplest way to get a remote tmux session into a window of iterm is to invoke it on the remote host

@dufferzafar
dufferzafar / adeeb_dummy_data.sql
Created November 9, 2021 12:15
Adeeb's DBMS project for Class XII - School Management System
INSERT INTO teachers VALUES
(0, "Salma", "Anjum", "salma@gmail.com", "1969-10-26", "1993-10-26", "WORKING"),
(0, "Rauf", "Khan", "", "1965-10-26", "1992-10-26", "WORKING");
@dufferzafar
dufferzafar / Last.fm cli design.md
Last active August 11, 2021 04:36
A lastfm playlist generator. #python #lastfm #ideabin

lfm - the last.fm player

A last.fm based playlist creator.

lfm update - Create or Update your local database of music files.

lfm diff [me] users - Find differences in music taste between users.

lfm common [me] [users] - Find stuff common between users.

@dufferzafar
dufferzafar / README.md
Created January 14, 2021 14:57 — forked from foulegg/README.md
Generate a ClearTax capital gains report using the capital gains statement from Kuvera (depends on beautifulsoup4 and openpyxl)

Installing dependencies

This script requires two Python dependencies: beautifulsoup4 and openpyxl. Install them first using pip:

$ pip install beautifulsoup4
$ pip install openpyxl

You might have to use sudo if installing globally.

Project Title Student Display Name Organization Name Mentors
Key mapping GUI Tomasito665 Mixxx DJ Software RJ Ryan, Ferran Pujol Camins
YAPDNS system64 The Honeynet Project Pietro Delsante, Fedele Mantuano, Andrea De Pasquale
FFv1 P frame support sdolganov FFmpeg Reynaldo Verdejo, michaelni
coala: Integrating coala with the Eclipse IDE Sheikh Araf Python Software Foundation Harsh Dattani, Lasse Schuirmann (sils1297), AbdealiJKothari
User interfaces for Tracker Dilushi Sustainable Computing Research Group ( SCoRe ) Dinith Minura, Namal Jayasuriya, Rumesh
File Support izgzhen Mozilla Manishearth
KolibriOS. Development of TLS/SSL library DenisKarpenko KolibriOS Jeffrey A., Pathoswithin
IPFS friendly & distributed version of Amber skbly7 Berkman Center for Internet and Society Genève
Cache layer for jpf-nhandler Jayton Java Pathfinder Team franck, Nastaran, Cyrille Artho
@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