- Nodejs v14.17.3
- Typescript v4.5.4
- Next.js v12.0.7
- React v17.0.2
- TailwindCSS v3.0.7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; If CAPSLOCK is up before a 100 milisecond send Escape else keep CTRL pressed until CAPSLOCK is released | |
*CapsLock::{ | |
Send "{Blind}{Ctrl Down}" | |
released := KeyWait("CAPSLOCK", "T0.1") | |
If (released) | |
Send "{Blind}{Ctrl Up}{Esc}" | |
} | |
*CapsLock up::Send "{Blind}{Ctrl Up}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
TOOL=dmenu | |
if [[ -t 1 ]]; then | |
TOOL=fzf | |
fi | |
ADDR=$(ip -oneline -4 addr | awk '{print $2, $4}'| $TOOL | awk '{print $2}' | perl -pe 's/\/\d+//') | |
echo $ADDR | xclip -i -selection clipboard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export DISPLAY=:0 | |
export XAUTHORITY=/home/manuel/.Xauthority | |
export XDG_RUNTIME_DIR=/run/user/$(id -u) | |
hdmi_active="$(cat /sys/class/drm/card0/*HDMI*/status | grep '^connected')" | |
echo $hdmi_active | |
if [[ "$hdmi_active" == "connected" ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. redo last command but as root | |
sudo !! | |
# 2. open an editor to run a command | |
ctrl+x+e | |
# 3. create a super fast ram disk | |
mkdir -p /mnt/ram | |
mount -t tmpfs tmpfs /mnt/ram -o size=8192M |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef __linux__ | |
#undef Bool | |
#undef CursorShape | |
#undef Expose | |
#undef KeyPress | |
#undef KeyRelease | |
#undef FocusIn | |
#undef FocusOut | |
#undef FontChange | |
#undef None |