Skip to content

Instantly share code, notes, and snippets.

@theCalcaholic
theCalcaholic / README.md
Last active September 21, 2024 10:15
Logseq advanced query for tasks table (including scheduled/deadline dates)

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:

image

@theCalcaholic
theCalcaholic / main.py
Last active January 20, 2024 00:38
PoC: Read from video capture device using xdg-desktop-portals, pipewire and gstreamer and consume the video with VidGear/OpenCV
#!/usr/bin/python3
import re
import numpy as np
import dbus
from dbus.mainloop.glib import DBusGMainLoop
from time import sleep
from vidgear.gears import WriteGear
from gstreamer import GstContext, GstPipeline, GstApp, Gst, GstVideo
@theCalcaholic
theCalcaholic / tf_apply_debug.log
Last active September 4, 2019 16:27
terraform-bug-report-01
2019/09/04 18:26:38 [INFO] Terraform version: 0.12.7
2019/09/04 18:26:38 [INFO] Go runtime version: go1.12.9
2019/09/04 18:26:38 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2019/09/04 18:26:38 [DEBUG] Attempting to open CLI config file: /home/tknoeppl/.terraformrc
2019/09/04 18:26:38 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/09/04 18:26:38 [INFO] CLI command args: []string{"apply"}
2019/09/04 18:26:38 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2019/09/04 18:26:38 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2019/09/04 18:26:38 [DEBUG] New state was assigned lineage "cdc059ec-19ff-682c-dd12-716beaae90b9"
2019/09/04 18:26:38 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)