Skip to content

Instantly share code, notes, and snippets.

View navhaxs's full-sized avatar

Jeremy Wong navhaxs

View GitHub Profile
@navhaxs
navhaxs / move_cursor_to_primary_monitor_center.ahk
Created March 28, 2024 07:12
move_cursor_to_primary_monitor_center.ahk
#Requires AutoHotkey 2.0+
#SingleInstance Force
CoordMode("Mouse")
;Alt+M
!M::MouseMove(A_ScreenWidth/2,A_ScreenHeight/2,0) ;Primary
;F5::Try MonitorGet(2,&L,&T,&R,&B),MouseMove((L+R)/2,(T+B)/2,0) ;Secondary
@navhaxs
navhaxs / thinkpad.ahk
Last active February 15, 2024 17:34
Personal autohotkey scipt. Lenovo Thinkpad T450s media keys / Synaptics Task View gestures
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; THINKPAD T450s
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Right Ctrl + Right Shift to open App key (Menu key)
; since it's missing from the keyboard.
~RControl & RShift::Send {AppsKey}
Return
;#NoTrayIcon
;#SingleInstance force
;#Persistent
;#InstallKeybdHook
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Logitech T650 mappings for Windows 10.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@navhaxs
navhaxs / add-context-menu.reg
Created October 4, 2022 12:14
Convert HEIC to JPG context menu Windows 10
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\SystemFileAssociations\.heic\Shell\convert-to-jpg\command]
@="C:\\Program Files\\ImageMagick-7.1.0-Q16-HDRI\\magick.exe mogrify -format jpg %1"
mountvol v: /s
taskkill /im explorer.exe /f
explorer /nouaccheck
REM unmount
mountvol v: /d
@navhaxs
navhaxs / my-config.json
Created September 6, 2021 06:28
Jeremy's mac binding for karabiner-elements
{
"title": "[macOS] Use Caps Lock + Arrows to Navigate Tabs (Jeremy)",
"rules": [
{
"description": "Navigate Tabs with CapsLock + Any Arrows",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
@navhaxs
navhaxs / mac-disk-cleanup.md
Last active June 1, 2021 02:24
Mac disk cleanup

Keyboard shortcuts

VSCODE: Apple+D next selection

INTELLIJ: Ctrl+G next selection Option + Cmd +[ and Option + Cmd + ], and Ctrl + M.  to navigate to a code block's start and end. to navigate between the start and end of a code block.

Hackintosh essentials

@navhaxs
navhaxs / gist:ab284f1609b03c2dfa61a6497ea6b65c
Created August 1, 2020 01:00
Block Windows 10 Bing search outgoing firewall
%windir%\SystemApps\Microsoft.Windows.Search_cw5n1h2txyewy\SearchApp.exe