Skip to content

Instantly share code, notes, and snippets.

@Dulani
Dulani / 00-swayidle-vars.conf
Created July 30, 2026 16:23
Fedora Sway Custom Desktop Setup: Configs, Dynamic Composited Wallpaper, Dashboard Overlay & Validation
set $lock_timeout 3600
set $screen_timeout 60
@Dulani
Dulani / config.jsonc
Created July 30, 2026 16:19
Swaybar / Waybar custom configuration and weather scripts
// -*- mode: jsonc -*-
{
// "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 30, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
"spacing": 4, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": [
"sway/workspaces",
@Dulani
Dulani / setup-hp-pavilion-pi.sh
Created July 30, 2026 16:04
HP Pavilion x360 Setup: Diagnostics & Pi Agent Installer
#!/usr/bin/env bash
set -eo pipefail
echo "=========================================================="
echo " HP Pavilion x360 Setup: Diagnostics & Pi Agent Installer "
echo "=========================================================="
echo ""
# 1. Update system and install required tools
echo "[1/5] Installing DNF packages (Node.js, Git, Diagnostics)..."
@Dulani
Dulani / alpine-remove-desktop.sh
Created September 8, 2025 05:51 — forked from eznix86/alpine-remove-desktop.sh
This is the inverse of setup-desktop in Alpine Linux
# copy and paste to /sbin/remove-desktop
#!/bin/sh
PREFIX=
: ${LIBDIR=$PREFIX/lib}
. "$LIBDIR/libalpine.sh"
usage() {
cat <<-__EOF__
@Dulani
Dulani / THREDDS_Radar_Server_AWS.ipynb
Created January 11, 2023 03:47 — forked from dopplershift/THREDDS_Radar_Server_AWS.ipynb
A Jupyter notebook showing how to use Python to access the NCEI radar archive on Amazon S3 through Unidata's THREDDS server.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Dulani
Dulani / markdown_details.md
Last active May 7, 2022 13:24
Test Markdown details with summary

H1

H2

  • UL above details
  • Second LI
Summary in outer details

Details below summary

@Dulani
Dulani / spec.json
Created April 26, 2022 02:34
Density histogram with a vertical rule and some other formatting
/*
Density histogram with a vertical rule and some other formatting.
*/
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"datasets": {
"linedata": [
{"b": 5},
{"b": 20},
{"b": 20},
@Dulani
Dulani / spec.json
Last active April 26, 2022 01:55
Vertical rule using datasets
/* Vertical rule using datasets */
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"datasets": {
"linedata": [
{"a": 1, "b": 30},
{"a": 2, "b": 45},
{"a": 3, "b": 50},
{"a": 4, "b": 60},
{"a": 5, "b": 70},
@Dulani
Dulani / spec.json
Last active April 26, 2022 01:35
Vega-Lite Chart with vertical rule movable with a slider.
/* Layering a verticle rule over existing data (with a control to boot) */
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"params": [
{
"name": "x1",
"value": 5,
"bind": {"input": "range", "min": 0, "max": 10, "step": 1}
}
],
@Dulani
Dulani / example.md
Created April 7, 2021 02:12 — forked from ericclemmons/example.md
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 Summary Goes Here