Skip to content

Instantly share code, notes, and snippets.

View tazihad's full-sized avatar
🎯
Focusing

Zihad tazihad

🎯
Focusing
View GitHub Profile
@tazihad
tazihad / sublime-text-flatpak.md
Created October 3, 2026 14:49
How to patch sublime text in linux flatpak Build 4215

Run the following command in your terminal to revoke the network socket permission for your sublime text:

flatpak override --user --unshare=network com.sublimehq.SublimeText

This prevents the application from initiating outbound connections, downloading updates, or transmitting telemetry.

Open the terminal

sudo perl -pi -e 's/\x0F\xB6\x51\x0C\x83\xF2\x01/\xC6\x41\x0C\x01\x31\xD2\x90/' /var/lib/flatpak/app/com.sublimehq.SublimeText/x86_64/stable/active/files/extra/sublime_text/sublime_text
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=image/jpeg;image/png;image/webp;image/avif;image/jxl;image/heif;image/heic;image/tiff;image/bmp;image/gif;image/svg+xml;image/x-tga;image/x-dds;image/x-exr;image/vnd.radiance;image/x-adobe-dng;image/x-canon-cr2;image/x-canon-cr3;image/x-nikon-nef;image/x-sony-arw;
X-KDE-Submenu=ImageMagick Studio
X-KDE-Priority=TopLevel
Actions=WebOptimize;MakeProgressive;MakeFavicons;MakeAnimatedGIF;_SEPARATOR_;Compress80;Compress60;Compress40;_SEPARATOR_;Resize50;Resize25;Resize1920;Resize1080;ResizeSquare;_SEPARATOR_;DropShadow;AddBorder;TransparentToWhite;SepiaTone;Grayscale;_SEPARATOR_;StripAllMetadata;ViewMetadata;AddComment;_SEPARATOR_;Rotate90;FlipH;FlipV;ConvertToAvif;ConvertToJxl;ConvertToWebp;ConvertToPNG;ConvertToJPG;
# ==================== ADVANCED WEB & FX ====================
[Desktop Action WebOptimize]
@tazihad
tazihad / statusline.sh
Last active August 24, 2026 14:48
Antigravity-cli custom statusline
#!/bin/bash
set -euo pipefail
INPUT_JSON=$(cat)
SANDBOX_LOG="$HOME/.gemini/antigravity-cli/cli.log"
# ─── Config & Path Resolution ─────────────────────────────────────────────────
CONFIG_PATH=""
SETTINGS_FILE="$HOME/.gemini/antigravity-cli/settings.json"
if [ -f "$SETTINGS_FILE" ]; then
@tazihad
tazihad / build-openbangla-fcitx-debian.sh
Created May 4, 2026 10:35
Openbangla fcitx5 build instruction for debian 13
#!/bin/bash
set -e
sudo apt update
sudo apt install -y git cmake build-essential rustc cargo \
pkg-config libfcitx5core-dev libfcitx5utils-dev \
qtbase5-dev qtbase5-dev-tools libzstd-dev
WORK_DIR="$HOME/openbangla_build"
@tazihad
tazihad / favicon-generator.sh
Created August 11, 2025 12:45
Favicon Generator. Dependency: imagemagick, pngcrush
#!/bin/bash
# === Colors ===
GREEN='\033[0;32m'
BLUE='\033[1;34m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m' # No Color
log() {
@tazihad
tazihad / fav-android-foss-list.md
Last active January 13, 2025 05:02
My favourite android foss list
@tazihad
tazihad / breeze-dark-color-scheme-wine.md
Last active July 25, 2026 19:36
Breeze Dark Color scheme for linux WINE apps.

Breeze Dark Color scheme for WINE apps in linux.

Screenshot_20240923_010127-1

breeze-dark.theme

; Breeze Dark Theme
[Theme]
DisplayName=Breeze Dark
@tazihad
tazihad / aria2-podman.md
Last active July 5, 2024 15:54
setup aria2 using podman on linux with browser integration
  1. Install podman.
sudo dnf install podman # fedora
or 
sudo apt install podman # debian/ubuntu
  1. setup podman container.
mkdir -p ~/Downloads/aria2-pro-downloads
@tazihad
tazihad / waitForKeyElements.js
Created December 26, 2022 04:50 — forked from BrockA/waitForKeyElements.js
A utility function, for Greasemonkey scripts, that detects and handles AJAXed content.
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);