Skip to content

Instantly share code, notes, and snippets.

Working from home

Shadab Zafar dufferzafar

Working from home
View GitHub Profile
foulegg /
Last active May 19, 2021
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.

Gordin /
Last active May 14, 2021
If you put this in your .bashrc/.zshrc you will be able to use cd to Windows style paths. This is probably only useful for WSL users.
cd() {
# Check if no arguments to make just typing cd<Enter> work
# Also check if the first argument starts with a - and let cd handle it
if [ $# -eq 0 ] || [[ $1 == -* ]]
builtin cd $@
# If path exists, just cd into it
# (also, using $* and not $@ makes it so you don't have to escape spaces any more)
jfcherng /
Last active Jun 10, 2021
Sublime Text 4 changelog just because it's not on the official website yet.
warecrash /
Last active May 10, 2021
Convert Debian to Kali
apt update
apt -y install wget gnupg dirmngr
wget -q -O - | gpg --import
gpg --keyserver hkp:// --recv-key 44C6513A8E4FB3D30875F758ED444FF07D8D0BF6
echo "deb kali-rolling main non-free contrib" >> /etc/apt/sources.list
gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add -
apt update
apt -y upgrade
apt -y dist-upgrade
apt -y autoremove --purge
abelcheung /
Last active Jun 22, 2021
Customizing Firefox view-source style -- Solarized Dark theme with wallpaper

Customizing Firefox view-source style


  1. Open (or create) chrome/userContent.css under your Firefox profile folder
  2. Append attached CSS content and save file
  3. Restart Firefox

firefox view-source style customization

#!/usr/bin/env python3
quicky script that compares two conda environments
can be handy for debugging differences between two environments
This could be made much cleaner and more flexible -- but it does the job.
Please let me know if you extend or improve it.
Nachtalb / telegram-desktop-multiple-accounts.rst
Last active Jun 21, 2021
Add multiple accounts in Telegram Desktop [Linux | MacOSX | Windows]
View telegram-desktop-multiple-accounts.rst

Suppose you wanna merge repoA and repoB with no common history

  1. cd into repoA
  2. Add repoB as remote
    git remote add repoB <repoB url>
  3. Fetch repoB's content
    git fetch repoB

Alternatively 2 & 3 can be done together as
git remote add -f repoB <repoB url #Add repoB as remote and fetch its contents

matt-bailey /
Last active Jun 16, 2021
How to set up DNS records on to use a custom domain on Github Pages

How to set up DNS records on to use a custom domain on Github Pages

You would think it would be easy to find this information, but none of the Github or Gandi documentation is clear so I have recorded the required steps here.

Create the following A records:

@ 1800 IN A
@ 1800 IN A
@ 1800 IN A