Skip to content

Instantly share code, notes, and snippets.

View BosEriko's full-sized avatar
🤡
Pretending to be busy

Bos Eriko Reyes BosEriko

🤡
Pretending to be busy
View GitHub Profile
@BosEriko
BosEriko / hide-mouse-when-typing.ahk
Created August 10, 2022 22:15
Hide Mouse When Typing
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: Stefan Z Camilleri - stefan@camilleri.me
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; Initialize the mouse cursor
@BosEriko
BosEriko / vim-movement.ahk
Last active August 10, 2022 07:53
Vim Movement
!h::Send {Left}
!j::Send {Down}
!k::Send {Up}
!l::Send {Right}
+!h::Send +{Left}
+!j::Send +{Down}
+!k::Send +{Up}
+!l::Send +{Right}
@BosEriko
BosEriko / overload-capslock.ahk
Created August 9, 2022 19:59
Overload Capslock
; Map Capslock to Control
; Map press & release of Capslock with no other key to Esc
; Press both shift keys together to toggle Capslock
*Capslock::
Send {Blind}{LControl down}
return
*Capslock up::
Send {Blind}{LControl up}
@BosEriko
BosEriko / CapsLockCtrlEscape.ahk
Created August 9, 2022 19:54 — forked from sedm0784/CapsLockCtrlEscape.ahk
AutoHotkey script to map Caps Lock to Escape when it's pressed on its own and Ctrl when used in combination with another key, à la Steve Losh. Adapted from one that does something similar with the Ctrl Key on the Vim Tips Wiki (http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_Windows?oldid=32281). (Plus contribs from @randy909 & @mmikeww.)
g_LastCtrlKeyDownTime := 0
g_AbortSendEsc := false
g_ControlRepeatDetected := false
*CapsLock::
if (g_ControlRepeatDetected)
{
return
}
@BosEriko
BosEriko / gist:2436b6bc4463572af5ba2970513c228f
Created October 29, 2019 23:15
Weekly Development Breakdown
Public Gist

Keybase proof

I hereby claim:

  • I am boseriko on github.
  • I am boseriko (https://keybase.io/boseriko) on keybase.
  • I have a public key ASCskKkEy_RmmxmqnJ_pIwme5ZJROQx_Y80kv_2UOh9b_go

To claim this, I am signing this object:

@BosEriko
BosEriko / hotkeys.md
Last active July 30, 2018 11:50
Visual Studio Code Custom Hotkeys (Mac)

Visual Studio Code Custom Hotkeys (Mac)

General Commands

Command Name Combination
Show all Commands cmd + (g ~ a)
Open a Project cmd + (g ~ o)
Add Folder to Workspace cmd + (g ~ w)
Remove Folder from Workspace cmd + (g ~ d)
Format Document cmd + (g ~ f)
@BosEriko
BosEriko / c.vimrc
Last active May 11, 2019 09:02
cVim
set autoupdategist
set autohidecursor
set noautofocus
set sortlinkhints
let scrollstep=100
let hintcharacters="asdfjkl;"
let barposition="bottom"
let blacklists = ["https://www.messenger.com/*", "https://www.youtube.com/*", "https://www.figma.com/*", "https://*.slack.com/*"]
@BosEriko
BosEriko / tmux.md
Created October 30, 2017 08:10 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a