This is a logseq advanced query which fetches all your tasks, sorts them by (the earlier of) scheduled and deadline date if those are defined and then displays them in a table.
Here's how the query looks for the example tasks above:
| import socket | |
| from redis.client import Redis | |
| from redis.connection import Connection, ConnectionPool | |
| from redis._compat import iteritems | |
| class ProxyConnection(Connection): | |
| def __init__(self, host='localhost', port=6379, db=0, password=None, | |
| socket_timeout=None, socket_connect_timeout=None, | |
| socket_keepalive=False, socket_keepalive_options=None, |
mkdir -p ~/.local/share/authy
cd ~/.local/share/authy
| from cryptography import x509 | |
| from cryptography.hazmat.backends import default_backend | |
| from cryptography.hazmat.primitives import hashes, serialization | |
| from cryptography.hazmat.primitives.asymmetric import rsa | |
| from cryptography.x509.oid import NameOID | |
| import datetime | |
| import uuid | |
| one_day = datetime.timedelta(1, 0, 0) | |
| private_key = rsa.generate_private_key( | |
| public_exponent=65537, |
| ssh-keygen -a 101 -t ed25519 -f ~/.ssh/id_ed25519 -C "john@example.com" |
| [Desktop Entry] | |
| Categories=Development; | |
| Comment=Supercharge your API workflow | |
| Exec="/home/hauthorn/Programs/Postman/Postman" | |
| Icon=/home/hauthorn/Programs/Postman/app/resources/app/assets/icon.png | |
| Name=Postman | |
| Terminal=false | |
| Type=Application | |
| Version=1.0 |
| [Desktop Entry] | |
| Version=1.0 | |
| Name=Telegram Desktop | |
| Comment=Official desktop version of Telegram messaging app | |
| TryExec=/opt/Telegram/Telegram | |
| Exec=/opt/Telegram/Telegram -- %u | |
| Icon=telegram | |
| Terminal=false | |
| StartupWMClass=TelegramDesktop | |
| Type=Application |