xnoremap @ :<C-u>call ExecuteMacroOverVisualRange()<CR>
function! ExecuteMacroOverVisualRange()
echo "@".getcmdline()
execute ":'<,'>normal @".nr2char(getchar())
endfunction
This file contains 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
Go to C:\Program Files\Docker\Docker\resources\bin and open docker as admin | |
For the WSL1 part, replace with this: | |
``` | |
# WSL 1 | |
"$binary.exe" "$@" | |
``` |
This file contains 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
C:\Windows\System32\cmd.exe | |
/k C:\Windows\sysnative\wsl.exe -e bash -lic "vim %1" | |
C:/Windows/sysnative/wsl.exe -e bash -lic "vim $(echo C:\Users\admin\Downloads\TEAPortable\TextEditorAnywhere\Temp\TextEditorAnywhere_14_11_100.txt)" | |
C:\Users\admin\Downloads\TEAPortable\TextEditorAnywhere\Temp\TextEditorAnywhere_14_11_100.txt | |
/mnt/c/Users/admin/Downloads/TEAPortable/TextEditorAnywhere/Temp/TextEditorAnywhere_14_11_100.txt |
This file contains 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
Amount | Part | Part Number (if any) | Notes | Estimated Price (w/o shipping) | Where to get/buy | |
---|---|---|---|---|---|---|
1 pc | Urchin PCB set | Build guide: https://youtu.be/CHSh1-dJq24 | https://github.com/duckyb/urchin | |||
34 pcs | Kailh Choc v1 hot swap sockets | https://www.aliexpress.com/item/33023283633.html OR https://keebd.com/products/kailh-hot-swappable-low-profile-1350-pcb-socket-pack-of-10 | ||||
34 pcs | Kailh Choc v1 switches | PG1350 | https://nextkeyboard.club/product/choc-v1-switches-pack-of-5 OR https://shop.beekeeb.com/product/kailh-low-profile-choc-v1-key-switches-pg1350-chocolate-10-pcs OR https://www.aliexpress.com/item/4000419542482.html | |||
34 pcs | Choc v1 keycaps ✅ | 1u size. To understand what "1u" means, refer to this: https://www.dwarf-factory.com/keycap-length | https://nextkeyboard.club/product-category/keycaps/choc-keycaps | |||
34 pcs | SMD diodes | 1N4148w | SOD-123 package | https://nextkeyboard.club/product/switch-diode-1n4148w-sod-123-smd | ||
2 pcs | nice!nano microcontroller boards ✅ | https://nextkeyboard.club/product/nicenano OR https://shop.b |
This file contains 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
set oLocator = CreateObject("WbemScripting.SWbemLocator") | |
set oServices = oLocator.ConnectServer(".","root\wmi") | |
set oResults = oServices.ExecQuery("select * from batteryfullchargedcapacity") | |
for each oResult in oResults | |
iFull = oResult.FullChargedCapacity | |
next | |
while (1) | |
set oResults = oServices.ExecQuery("select * from batterystatus") | |
for each oResult in oResults |
This file contains 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
" Easily open/close (toggle) the git status window. | |
nnoremap <leader>gs :call ToggleGStatus()<CR> | |
function! ToggleGStatus() | |
if buflisted(bufname('.git/index')) | |
bd .git/index | |
else | |
G | |
endif | |
endfunction |
This file contains 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
# clean up any backups not used in the past 7 days out of the ~/.backup directory | |
@daily find ~/.backup -type f -name '*;*' -not \( -atime 0 -or -atime 1 -or -atime 2 -or -atime 3 -or -atime 4 -or -atime 5 -or -atime 6 \) -delete |
Update vim to 8.2:
- https://vi.stackexchange.com/questions/10817/how-can-i-get-a-newer-version-of-vim-on-ubuntutgetent-not-found-while-compiling-vim
- https://superuser.com/questions/578934/
Build vim with clipboard support
- curl -> data transfer (download, http request, etc)
- git -> source control
- stow -> dotfiles management
- ripgrep -> default fzf command for better fuzzy finding
- fzf -> improved shell workflow (autocompletion and command history)
This file contains 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
@echo off | |
start "" "C:\Program Files\VcXsrv\vcxsrv.exe" :0 -multiwindow -ac |
NewerOlder