shellcheck is a tool that gives you warnings and suggestions for your shell scripts.
It can be used from the command line. Just install it using your package manager.
There is an other option for checking by submitting your code on shellcheck website for an immediate feedback.
More details available on : Github
To see what’s inside a variable or a Perl object, Data::Dumper is often used.
For inspecting objects, its features are limited.
Data::Printer helps you dump your Perl data structures in a complete, colored and human-friendly way.
This module is not part of the Perl core modules.
To install it on Debian Buster :
apt install libdata-printer-perl
Start using it. Its syntax is simple and pretty straightforward.
For objects, it provides public/private methods details that Data::Dumper does not.
More details on Metacpan for Data::Printer
Debian provides deb packages for Vim and Vim scripts. Vim scripts are a set of addons to vim to automate repetitive tasks or adding new functionalities to the Vim editor.
This addon, closetag.vim, will be installed and enabled and ready for use when editing an HTML file.
Debian provide a central way to manage Vim addons, vim-addons-manager, system-wide or a per-user configuration.
To install it :
apt install vim-addon-manager vim-scripts
To enable it just for you :
vim-addons install closetag
A local copy of closetag.vim is created in ~/.vim/macros
To enable it in your Vim editor :
The auto-closing function is available in insert mode by typing Ctrl-_
More infos :
Debian Packaging Policy for Vim
If you push code to a git repo, you might get this error :
remote: error: insufficient permission for adding an object to repository database objects
remote: fatal: failed to write object
Make sure that the system permissions are set properly. Stackoverflow provides some good troubleshooting steps.
The commands below solve the issue :
chgrp -R groupname .
chmod -R g+rwX .
git config core.sharedRepository true
For groupname, make sure it matches the user account details that you use for logging in and pushing code to the git server.
gpasswd is the right tool for it.
For instance, let’s remove user user_name from secondary group group_name :
gpasswd -d user_name group_name