pub fn set_status_borsh(&mut self, #[serializer(borsh)] message: Vec<u8>) {}To call this function you need to pass arguments borsh serialized, and those bytes encoded as base64
| prog :=xnixperms | |
| debug ?= | |
| $(info debug is $(debug)) | |
| ifdef debug | |
| release := | |
| target :=debug | |
| extension :=debug |
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv to manually rebuild the font cache
At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.
git commit --amendThis will open your $EDITOR and let you change the message. Continue with your usual git push origin master.
I use tmux splits (panes). Inside one of these panes there's a Vim process, and it has its own splits (windows).
In Vim I have key bindings C-h/j/k/l set to switch windows in the given direction. (Vim default mappings for windows switching are the same, but prefixed with C-W.) I'd like to use the same keystrokes for switching tmux panes.
An extra goal that I've solved with a dirty hack is to toggle between last active panes with C-\.
Here's how it should work:
As configured in my dotfiles.
start new:
tmux
start new with session name: