Skip to content

Instantly share code, notes, and snippets.

View Not-Dhanraj's full-sized avatar
🎯
Focusing

Dhanraj Not-Dhanraj

🎯
Focusing
View GitHub Profile
@Not-Dhanraj
Not-Dhanraj / flutter_install_ubuntu.md
Last active March 2, 2026 17:10
Install Script for flutter (Tested on Ubuntu 25.10)

Flutter Linux Installer

A bash script to install Flutter on Linux with support for custom versions, channels, and auto-detection of CPU architecture (x64 / arm64).

Quick Install

bash <(curl -fsSL https://gist.githubusercontent.com/Not-Dhanraj/7a62c05e45d616b217c4b2f06cda17d5/raw/8fc3eddaff62e841bfb33ecba7e54db09a2df25d/fl_sc)

Options

#!/bin/bash
usage() {
echo "Usage: $0 [options]"
echo "Options:"
echo " --version <VERSION> Specify the Flutter version to install."
echo " --channel <CHANNEL> Specify the Flutter channel (default: stable)."
echo " --replace Replace the existing Flutter installation."
echo " --help Display this help message."
@Not-Dhanraj
Not-Dhanraj / gnome-on-screen-ocr.md
Created February 19, 2026 21:00
A fast, on-device OCR solution for GNOME Wayland

GNOME Wayland OCR Screenshot: Copy Text to Clipboard

A fast, on-device OCR solution for GNOME Wayland - select any area of your screen and get the text copied straight to your clipboard, no intermediate image save required.

Problem

  • You want to copy text from an image, video, or non-selectable UI element
  • You don't want to save a screenshot and manually run OCR on it
  • You want it all triggered by a single keyboard shortcut
@Not-Dhanraj
Not-Dhanraj / toggle-desktop-gnome.md
Created December 11, 2025 20:40
A simple bash script to enable Windows-like toggle show desktop behavior in GNOME using wmctrl

GNOME Toggle Show Desktop Script

A simple script to enable Windows-like "toggle show desktop" behavior in GNOME.

Prerequisites

Install wmctrl:

# Debian/Ubuntu
@Not-Dhanraj
Not-Dhanraj / gnome-wayland-screenshot.md
Last active January 10, 2026 15:08
GNOME Wayland screenshot solution - save file + copy to clipboard (area screenshot and screenshot without Enter)

GNOME Wayland Screenshot: Save File + Copy to Clipboard

A solution for taking area screenshots on Fedora GNOME (Wayland) that both saves the file AND copies it to clipboard with a single keyboard shortcut.

Problem

  • gnome-screenshot -c flag is broken on Wayland
  • grim + slurp don't work with GNOME's compositor (zwlr_layer_shell_v1 not supported)

Solution