Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Shadab Zafar dufferzafar

🏠
Working from home
View GitHub Profile
@foulegg
foulegg / README.md
Last active May 19, 2021
Generate a ClearTax capital gains report using the capital gains statement from Kuvera (depends on beautifulsoup4 and openpyxl)
View README.md

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
Gordin / cd_for_windows_paths.sh
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.
View cd_for_windows_paths.sh
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 == -* ]]
then
builtin cd $@
return
fi
# If path exists, just cd into it
# (also, using $* and not $@ makes it so you don't have to escape spaces any more)
@jfcherng
jfcherng / st4-changelog.md
Last active Jun 10, 2021
Sublime Text 4 changelog just because it's not on the official website yet.
View st4-changelog.md
@warecrash
warecrash / makekali.sh
Last active May 10, 2021
Convert Debian to Kali
View makekali.sh
apt update
apt -y install wget gnupg dirmngr
wget -q -O - https://archive.kali.org/archive-key.asc | gpg --import
gpg --keyserver hkp://keys.gnupg.net --recv-key 44C6513A8E4FB3D30875F758ED444FF07D8D0BF6
echo "deb http://http.kali.org/kali 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
abelcheung / firefox-viewsource-customize.md
Last active Jun 22, 2021
Customizing Firefox view-source style -- Solarized Dark theme with wallpaper
View firefox-viewsource-customize.md

Customizing Firefox view-source style

TL;DR

  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

View conda_compare.py
#!/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
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
View merge_two_repos.md

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
matt-bailey / github-pages-custom-domain-gandi-dns-records.md
Last active Jun 16, 2021
How to set up DNS records on gandi.net to use a custom domain on Github Pages
View github-pages-custom-domain-gandi-dns-records.md

How to set up DNS records on gandi.net 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 185.199.108.153
@ 1800 IN A 185.199.109.153
@ 1800 IN A 185.199.110.153