Skip to content

Instantly share code, notes, and snippets.

@sutungpo
sutungpo / all_pdf_dl.py
Created June 9, 2023 08:13 — forked from hibetterheyj/all_pdf_dl.py
Download all pdf files from a website
import os
import requests
from urllib.parse import urljoin
from bs4 import BeautifulSoup
import argparse
#%% Example
# one pdf
# python all_pdf_dl.py -l https://memento.epfl.ch/academic-calendar/ --save-here
# many pdfs
@sutungpo
sutungpo / frida-logging.md
Created September 2, 2021 07:15 — forked from oleavr/frida-logging.md
Frida logging hacks

Frida logging helper

For adding temporary logging to help understand behavior. For when it is impractical to use Frida to instrument Frida.

Choose one of these and copy-paste it into e.g. lib/interfaces/session.vala, then use log_event ("name='%s'", name); to log.

When something appears to be hanging, try applying: x-async-debug.patch.