Skip to content

Instantly share code, notes, and snippets.

View hafiz-muhammad's full-sized avatar
🐧

Abdul Hafiz Muhammad hafiz-muhammad

🐧
View GitHub Profile
@hafiz-muhammad
hafiz-muhammad / dash-to-dock-trash-options.md
Created April 27, 2024 18:40
Commands to enable/disable trash for Dash to Dock.

Commands to enable and disable trash for Dash to Dock:

Enable:

gsettings set org.gnome.shell.extensions.dash-to-dock show-trash true

Disable:

gsettings set org.gnome.shell.extensions.dash-to-dock show-trash false
@hafiz-muhammad
hafiz-muhammad / block-windows-telemetry.md
Last active November 29, 2025 03:01
Block Windows telemetry via host file.

Repo containing link below: https://github.com/hagezi/dns-blocklists?tab=readme-ov-file#native Copy & paste from https://gitlab.com/hagezi/mirror/-/raw/main/dns-blocklists/hosts/native.winoffice.txt and add to Windows host file.

Host file location: C:\Windows\System32\drivers\etc\hosts

How to:

  1. Drag & drop host file to desktop.
  2. Paste everything from https://gitlab.com/hagezi/mirror/-/raw/main/dns-blocklists/hosts/native.winoffice.txt below everything else.
  3. Drag & drop the host file back into C:\Windows\System32\drivers\etc.
  4. Click 'Allow on Device' through Windows Defender application.
@hafiz-muhammad
hafiz-muhammad / change-commit-author.sh
Created September 11, 2023 17:20
Change Git commit author.
#!/bin/sh
REPO_URL="https://github.com/USERNAME/REPO_NAME"
if [[ $REPO_URL != *".git" ]];
then
REPO_URL="$REPO_URL.git"
fi
git clone --bare "$REPO_URL"