Skip to content

Instantly share code, notes, and snippets.

@Lesik
Lesik / ingdiba-transactions.js
Created November 4, 2021 10:37
Dump all transactions from your ING DiBa account to JSON // Auszug aller Zahlungsein/ausgänge vom ING-DiBa-Konto in JSON
/** Run this on https://banking.ing.de/app/umsatzanzeige, the final object will be
* inside a Promise in your console from where you can copy it into your data
* processing software.
*/
// load all transactions
loadMoreFn = (resolve, reject) => {
const btn = document.querySelector('.g2p-transaction__card__load-more');
if (btn) {
btn.click();
@Lesik
Lesik / fetch.md
Last active October 23, 2024 02:19
Fetch a lendable book from archive.org as individual page images

By looking at the book online, you already (unwillingly and unknowingly) downloaded the pages to your computer, the only difference is that you have to keep the browser open, stay logged in and have internet connectivity to read it. I see no moral concerns with taking the data that's already on your computer and saving it in a more accessible way.

Open Chrome and devtools, then visit the book's online reading page and click "Borrow for 1 hour".

In the network tab, click XHR and copy the response of BookReaderJISA.php?... and save it as data in the console.

Then, run:

data.data.brOptions.data.forEach((first, firstI) => {
@Lesik
Lesik / widget.py
Last active February 24, 2020 09:39
PyQt 5 pyqtProperty QSS example
#!/usr/bin/env python3
from PyQt5.QtCore import QRect, pyqtProperty
from PyQt5.QtGui import QPaintEvent, QPainter, QColor, QPen
from PyQt5.QtWidgets import QWidget
from PyQt5.QtCore import Qt
class Widget(QWidget):
"""
https://www.riverbankcomputing.com/static/Docs/PyQt5/qt_properties.html