Skip to content

Instantly share code, notes, and snippets.

View dineshsaini's full-sized avatar
☠️
chaos

Dinesh Saini dineshsaini

☠️
chaos
View GitHub Profile
@dineshsaini
dineshsaini / gist:69dc28c8a5258808cfe5e1c17433972c
Last active November 20, 2025 11:16
Configuring Timezone in Apache Superset
Recently working with [NEC]("https://www.nec.com/") on a specific project, i encountered timezone issue in Apache superset. After detailed analyses i solved this issue, below are the analysis and steps to do it.
Conditions:
1. Superset does all time related calculations in UTC format only. So, it is recommended for you to do the same.
2. if possible skip setting timeaware dates in db, as this can create un-neccesery complexity/confusion on/during conversions.
3. have a central timzezone on which all operation happens (read/calculations/write), and UTC is best for that.
Steps to follow:
1. Superset consider its system's timezone as default timezone for its UI dates, like date range. So set your container's timzezone as your desired time zone.
@dineshsaini
dineshsaini / gist:caf8fb2d53b315cf32f0d55092ef4c0e
Last active December 15, 2024 16:18
make gnome tracker disable or stop completely
#!/usr/bin/env bash
# make tracker3 daemon non workable & idompotent
# this script will reset its settings, and configure tracker3 daemon, to not let it do anyting.
# if other code has dependency on this tracker, then it will not break, but we also do achieve our goal.
# interpretation for org.freedesktop.Tracker3.Miner.Files enable-monitor from this file
# https://gitlab.gnome.org/GNOME/tracker-miners/-/blob/master/src/miners/fs/tracker-config.c
#Time in seconds before crawling filesystem (0->1000)