Skip to content

Instantly share code, notes, and snippets.

View prashantsengar's full-sized avatar
💭
Being Awesome

Prashant Sengar prashantsengar

💭
Being Awesome
View GitHub Profile
@prashantsengar
prashantsengar / ublock_filters.txt
Last active May 12, 2022 10:36
ublock_filters
@@||target.com
@@||assets.targetimg1.com^$script,domain=www.target.com
@prashantsengar
prashantsengar / remove_spam_issues.py
Last active January 9, 2022 10:28
Remove spam issues from your GitHub repo
# pip install PyGithub
# This script will edit the title and body of all spam issues to "Spam", add a label "spam" to those issues
# set them as closed and lock the conversation
# Just set your GitHub Personal Access Token (Account settings > Developer settings > Personal Access tokens.
# Create a token with all the permissions for "repo" (probably the first one in the permission list)
import os
@prashantsengar
prashantsengar / README.md
Last active January 30, 2021 07:37
Django Fixing Errors and Tips

Django Fixing Errors and Tips

To help me and others who are working with Django. These are the snippets of code that I used to fix some of the problems that I encountered, or to add something new.

TypeError: argument of type 'WindowsPath' is not iterable

Full traceback

Traceback (most recent call last):
  File ".\manage.py", line 22, in <module>