Skip to content

Instantly share code, notes, and snippets.

@anshumanb
anshumanb / config.yml
Last active May 25, 2022 12:38
Github CLI settings
# What protocol to use when performing git operations. Supported values: ssh, https
git_protocol: https
# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment.
editor: vim
# When to interactively prompt. This is a global config that cannot be overridden by hostname. Supported values: enabled, disabled
prompt: enabled
# A pager program to send command output to, e.g. "less". Set the value to "cat" to disable the pager.
pager:
# Aliases allow you to create nicknames for gh commands
aliases:
@anshumanb
anshumanb / psreadline-disabled-fix.reg
Created July 19, 2022 23:36
Re-enable PSReadLine when PowerShell disables it
Windows Registry Editor Version 5.00
; https://serverfault.com/questions/1014754/cause-of-warning-powershell-detected-that-you-might-be-using-a-screen-reader-an
[HKEY_CURRENT_USER\Control Panel\Accessibility\Blind Access]
"On"="0"
@anshumanb
anshumanb / from-guest.sh
Last active December 10, 2022 19:25
Disable and enable VirtualBox guest-host time sync
# Disable time sync from guest
/etc/init.d/vboxadd-service stop
# Enable time sync from guest
/etc/init.d/vboxadd-service start
@anshumanb
anshumanb / windows-10-focus-follows-mouse.md
Created July 20, 2021 05:54
Set up focus follows mouse on Windows 10
  1. Navigate to Control Panel > Ease of Access > Ease of Access Center > Make the mouse easier to use
  2. Check "Activate a window by hovering over it with the mouse" and hit OK
  3. In the registry editor, navigate to Computer\HKEY_CURRENT_USER\Control Panel\Desktop
  4. Update ActiveWndTrkTimeout to 300
  5. Update UserPreferencesMask by subtracting 40 bits from the first hex value e.g. DF -> 9F
  6. Log out and log back in

Source: https://winaero.com/enable-xmouse-window-tracking-windows-10/