Skip to content

Instantly share code, notes, and snippets.

View Afeez1131's full-sized avatar

Lawal Afeez Afeez1131

View GitHub Profile
@Afeez1131
Afeez1131 / debugger pause beforeunload
Created October 27, 2023 06:07 — forked from carcinocron/debugger pause beforeunload
Chrome: pause before redirect
// Run this in the F12 javascript console in chrome
// if a redirect happens, the page will pause
// this helps because chrome's network tab's
// "preserve log" seems to technically preserve the log
// but you can't actually LOOK at it...
// also the "replay xhr" feature does not work after reload
// even if you "preserve log".
window.addEventListener("beforeunload", function() { debugger; }, false)
@Afeez1131
Afeez1131 / .gitignore
Created July 28, 2023 07:46 — forked from santoshpy/.gitignore
gitignore file for django project
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
@Afeez1131
Afeez1131 / dj-export-excel.py
Created April 3, 2023 14:30 — forked from rg3915/dj-export-excel.py
Export data with django-excel
''' Exporta planilhas em Excel '''
from datetime import datetime
import django_excel as excel
from django.http import HttpResponseBadRequest
from .models import Person
MDATA = datetime.now().strftime('%Y-%m-%d')
def export_data_person(request, atype):
@Afeez1131
Afeez1131 / coursera_downloader.py
Created June 22, 2018 11:52 — forked from rjdp/coursera_downloader.py
Script for downloading course Lectures from coursera specialization
import os
import requests
import time
import sys
video_quality = '360p' # available qualities 360p, 540p, 720p
"""
In order to get courseId go to a course page open network tab in browser dev tools and search for "onDemandSpecializations"
in search input of network tab and then go to videos section of say week 1 , check the query param "courseId" its value is what we use can use as value for "one_of_specialization_course_id"