Skip to content

Instantly share code, notes, and snippets.

View layerok's full-sized avatar
🐺

Rudomanenko Volodymyr layerok

🐺
View GitHub Profile
{
"description": "Change Command + h/j/k/l to Arrows",
"manipulators": [
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"command"
],
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ;
SendMode Input ; Recommended for new scripts due to its superior speed and reliability
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
!j::
Send, {Left down}{Left up}
Return
!k::
@layerok
layerok / gist:6f91fcff3f1d524a7a1f49170c48c6f2
Last active January 18, 2025 15:32
usefull windows commands
Show all envirnoment variables
```
ls env:
```
Refresh environment variables
```
refreshenv
```
git config --global alias.mr 'push origin HEAD'
git config --global alias.undo 'reset --soft HEAD~1'
~/.zshrc or ~/.bash_profile
listening() {
if [ $# -eq 0 ]; then
sudo lsof -iTCP -sTCP:LISTEN -n -P
elif [ $# -eq 1 ]; then
sudo lsof -iTCP -sTCP:LISTEN -n -P | grep -i --color $1
else
echo "Usage: listening [pattern]"
fi