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 March 14, 2024 18:07
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 / psd.conf
Last active March 4, 2024 11:38
profile-sync-daemon configuration
#
# $XDG_CONFIG_HOME/psd/psd.conf
#
# For documentation, refer man 1 psd or to the wiki page
# https://wiki.archlinux.org/index.php/Profile-sync-daemon
## NOTE the following:
## To protect data from corruption, in the event that you do make an edit while
## psd is active, any changes made will be applied the next time you start psd.
# see `man dnf.conf` for defaults and possible options
[main]
gpgcheck=True
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True
# Increase DNF speed
@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"