Archive
All published posts
Looking for inspiration? kickstart.nvim by nvim-lua.
A launch point for your personal nvim configuration
Check out init.lua by ThePrimeagen. It’s a well-crafted project with great potential.
No description available.
I’m really excited about mason.nvim, an amazing project by williamboman. It’s worth exploring!
Portable package manager for Neovim that runs everywhere Neovim runs. Easily install and manage LSP servers, DAP servers, linters, and formatters.
I came across mason.nvim from mason-org, and it’s packed with great features and ideas.
Portable package manager for Neovim that runs everywhere Neovim runs. Easily install and manage LSP servers, DAP servers, linters, and formatters.
I like sbidoul’s project hatch-pip-deepfreeze.
A hatch virtual environment plugin to lock dependencies with pip-deepfreeze
Give github actions the -e flag in the shebang #! so they fail on any one command failure. Otherwise each line will set the exit status, but only the last one will be passed to ci.
#!/bin/bash -e
What is -e #
The -e flag to the bash command allows your script to exit immediately if any command within the script returns a non-zero exit status. This can be useful for ensuring that your script exits with an error if any of the commands it runs fail, which can help you identify and debug issues in your script. For example, if you have a script that runs several commands and one of those commands fails, the script will continue running without the -e flag, but will exit immediately if the -e flag is present. This can make it easier to troubleshoot your script and ensure that it runs correctly.
In windows the solution is not quite as simple. You can define a function in a Windows batch script that wraps an if statement to check the exit status of a command and handle any errors that may have occurred. Here is an example of how you might define a function called “check_error”...
...
minecraft documentary
This is my first time journaling a Minecraft hardcore world, my son Wyatt is also documenting his journey in a survival world on wyattbubbylee.com.
init
I logged into a brand new hardcore world. I was welcomed by a great Acacia biome spawn full of resources. I quickly cut my first tree, crafted an axe and set out to find my first sheep. I was able to find enough sheep for a bed, several cows and pigs.
...
I recently setup some vm’s on my main machine and got sick of signing in with passwords.
Moving panes between tmux sessions is something that makes tmux a very flexible and powerful tool. I don’t need this feature very often, but it comes in clutch when you need it.
Using choose-window I was able to come up with a way to select any pane withing any other session and join it into my current session.
# Choose a pane to join in horizontally bind f choose-window -Z 'join-pane -h -s "%%"'
Push/Pull from scratch #
I’ve long had this one in my tmux config, I always have a “scratch” session that I’m running, I often use for looking at things like k9s accross repos within a popup.
This use case puts a pane into the scratch session, then pulls it back out. I will use this to move a pane between sessions in the rare cases I need to do this.
I like eth-p’s project bat-extras.
Bash scripts that integrate bat with various command line tools.
rwhitt2049 has done a fantastic job with df-viewer-poc. Highly recommend taking a look.
No description available.
The work on ansible-vault-pre-commit by pypeaday.
pre-commit hook to ensure sensitive info in a repo is encrypted with ansible-vault
I just shared some ssh keys with myself and ran into this error telling me that I did not set the correct permissions on my key.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0750 for '/home/waylon/.ssh/id_*******' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "/home/waylon/.ssh/id_*******": bad Permissions repo: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
I changed them with the following commands.
Mr-Destructive has done a fantastic job with djankata. Highly recommend taking a look.
Django + Markata blog starter
Looking for inspiration? dotfiles by jessarcher.
$HOME sweet $HOME
With the latest release of version of nvim 0.8.0 we get access to a new winbar feature. One thing I have long wanted somewhere in my nvim is navigation for pairing partners or anyone watching can keep track of where I am. As the driver it’s easy to keep track of the file/function you are in. But when you make big jumps in a few keystrokes it can be quite disorienting to anyone watching, and having this feedback to look at is very helpful.
nvim exposes the winbar api in lua, and you can send any text to the winbar as follows.
vim.o.winbar = "here"
You can try it for yourself right from the nvim command line.
:lua vim.o.winbar = "here"
Now you will notice one line above your file with the word here at the very beginning.
...
Just starred nvim-navic by SmiteshP. It’s an exciting project with a lot to offer.
Simple winbar/statusline plugin that shows your current code context
I came across winbar.nvim from fgheng, and it’s packed with great features and ideas.
winbar config for neovim
Looking for inspiration? nvim-scrollbar by petertriho.
Extensible Neovim Scrollbar
Looking for inspiration? nvim-hlslens by kevinhwang91.
Hlsearch Lens for Neovim
I came across pre-commit from pre-commit, and it’s packed with great features and ideas.
A framework for managing and maintaining multi-language pre-commit hooks.
I really like having global cli command installed with pipx. Since textual 0.2.x (the css release) is out I want to be able to pop into textual devtools easily from anywhere.
You can pipx install textual.
pipx install textual
But if you try to run any textual cli commands you will run into a ModuleNotFoundError, because you need to install the optional dev dependencies.
Traceback (most recent call last): File "/home/u_walkews/.local/bin/textual", line 5, in <module> from textual.cli.cli import run File "/home/u_walkews/.local/pipx/venvs/textual/lib/python3.10/site-packages/textual/cli/cli.py", line 4, in <module> import click ModuleNotFoundError: No module named 'click'
Pipx Inject #
In order to install optional dependencies with pipx you need to first install the library, then inject in the optional dependencies using the square bracket syntax.
I am working through the textual tutorial, and I want to put it in a proper cli that I can pip install and run the command without textual run --dev app.py. This is a fine pattern, but I also want this to work when I don’t have a file to run.
I set up a new project running hatch new, and added the following entrypoint, giving me a tutorial cli command to run.
... [project.scripts] tutorial = 'textual_tutorial.tui:tui'
https://waylonwalker.com/hatch-new-cli/
If you are using setup.py, you can set up entrypoints in the setup command.
...
The work on PrismLauncher by PrismLauncher.
A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once (Fork of MultiMC)
I’m really excited about learn-cloudformation, an amazing project by widdix. It’s worth exploring!
Learn how to use Infrastructure as Code on AWS with the help of CloudFormation.