Skip to content

Instantly share code, notes, and snippets.

@rexlx
rexlx / query.py
Created February 11, 2023 23:10
zinc query example numeric threshold with time range
import json
import requests as r
from requests.auth import HTTPBasicAuth
from datetime import datetime as dt
from datetime import timedelta
index = "stats"
index = f"{dt.now().strftime('%Y%m')}-{index}"
end = dt.now()
abandoned
able
absolute
adorable
adventurous
academic
acceptable
acclaimed
accomplished
accurate
@rexlx
rexlx / kill-tracker.sh
Created April 5, 2022 11:30
disable tracker daemon for redhat, fedora and centos (and presumably rocky and alma linux as well)
#!/bin/bash
echo "Hidden=true" >> /etc/xdg/autostart/tracker-extract.desktop
echo "Hidden=true" >> /etc/xdg/autostart/tracker-miner-apps.desktop
echo "Hidden=true" >> /etc/xdg/autostart/tracker-miner-fs.desktop
echo "Hidden=true" >> /etc/xdg/autostart/tracker-miner-user-guides.desktop
echo "Hidden=true" >> /etc/xdg/autostart/tracker-store.desktop
dbus-launch --exit-with-session gsettings set \
org.freedesktop.Tracker.Miner.Files crawling-interval -2
@rexlx
rexlx / HOWTO.md
Created August 1, 2020 17:20
TigerVNC on CentOS 8

What has changed

The previous Tigervnc versions had a wrapper script called vncserver which could be run as a user manually to start Xvnc process. The usage was quite simple as you just run

$ vncserver :x [vncserver options] [Xvnc options]

and that was it. While this was working just fine, there were issues when users wanted to start a Tigervnc server using systemd. For these reasons things were completely changed and there is now a new way how this all is supposed to work.