This is an archive of the hack mentioned here.
api.py
# Tweepy
# Copyright 2009-2023 Joshua Roesslein
# See LICENSE for details.
import contextlib
import functoolsThis is an archive of the hack mentioned here.
api.py
# Tweepy
# Copyright 2009-2023 Joshua Roesslein
# See LICENSE for details.
import contextlib
import functoolsFirst, you need the linux-headers for your kernel. I spent a long time searching the net before finding a .deb in /opt. Try to install the .deb sudo dpkg -i linux-headers*deb. Likely some things will be missing. I had to install the obvious and also lirc. Finally the deb will install.
Now get tun.c and compile the module tun.ko
Go to https://github.com/orangepi-xunlong/linux-orangepi and click your exact kernel under branches (see uname -r)
Navigate to drivers/net and click the file tun.c
Copy the raw link and use it in place of URL below.
| # pip install sdbus-notifications | |
| from sdbus_block.notifications import FreedesktopNotifications | |
| iface = FreedesktopNotifications() # default bus works, but could do `from sdbus import sd_bus_open_user` and pass sd_bus_open_user() | |
| app_name = '' | |
| replace_id = 0 # new | |
| app_icon = '' | |
| summary = 'title' | |
| body = 'body' |
| # TODO: loop until b is empty, automatically scroll down with a short delay | |
| # click all visible Unblock buttons | |
| var b = document.querySelectorAll("div[aria-label='Blocked']") | |
| for (i = 0; i < b.length; i++) b[i].click(); | |
| # click all visible Unmute buttons | |
| var b = document.querySelectorAll("div[aria-label^='Unmute']") | |
| for (i = 0; i < b.length; i++) b[i].click(); |
| <?php | |
| // address used throughout page and script. could also just be hardcoded without PHP. | |
| $addr = 'qqvppp5pe4sce8qyvyncdrhekgkxcyw2hczvervmp8'; | |
| ?> | |
| <html> | |
| <head> | |
| <title>Donate BCH</title> | |
| <style> | |
| body { font:16pt arial; } | |
| #address { font:18pt arial; } |
| <?php | |
| // address used throughout page and script. could also just be hardcoded without PHP. | |
| $addr = 'qqvppp5pe4sce8qyvyncdrhekgkxcyw2hczvervmp8'; | |
| ?> | |
| <html> | |
| <head> | |
| <title>Donate BCH</title> | |
| <style> | |
| body { font:16pt arial; } | |
| #address { font:18pt arial; } |