The trusty vim can be used as a hex editor by using the xxd filter. Just use the following command: :%!xxd This basically means: %!: select all xxd: filter Once the filter has been applied the view can be something like this (for a .png file): If changes are needed, they should be made to…
Category: Tools, tips and tricks
installing pico-sdk in wsl
Start wsl and create a directory that is accessible from windows, then change there: Clone the master branch from the sdk repo and initialize die submodules: Go back one directory and clone the examples repo: Update your apt repositories And install the tools: My cmake installation was ok, but it may need to have cmake…
A WordPress theme from scratch 5
Custom pages and page templates. After inserting content and defining default and custom css-classes for the different pages, we are going to work on how to provide different pages with each its own structure and content. Custom page templates Creating a custom page template is a simple matter. It requires creating a .php file with…
Serial Port Windows
Use mode to display or set the serial communication ports on Windows. Display available ports with their settings, Show help on mode Example for DMX on COM4
Hyper-V Manager for Windows 10 Home
If your would like to use Hyper-v but you are running Windows Home, you know it is not available. To activate it you can try this batch script. Notice: This file is not mine. I found it on the Iternet, analyzed it (to make sure it was safe) and ran the commands one by one…
Run docker as non-root
After installing docker, you may encounter that your commands fail with a “permission denied” message when trying to run them as a non-root user: The same command succeeds when run as root, but that is nothing to write home about. Root can do anything. Docker’s official documentation addresses this problem at: https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user But if you…
Connecting the Raspberry Pi to a DVI-Adapter
I have an old monitor which only supports DVI and when I work from home, I connect my notebook to it using an HDMI to DVI adapter. This approach, which has never caused a problem with any of my notebooks, has never worked when trying to connect a Raspberry Pi to it. Most of the…
Missing codec in Ubuntu
Those who try to play videos on a fresh installed Ubuntu are likely to be confronted with the problem of missing codecs. The good news is that, even though these are not present by default, they are still available and can be easily installed with apt or apt-get. The codecs are part of the ubuntu.restricted-extras…
VS-StudioCode
I have recently begun using Visual Studio Code for development on linux. It is a fine Editor, and it seems as there is an extension for almost every development or dev-ops related task. Although I am far from being an expert and for the most part use only a very small part of the available…
linux: find -exec
Find is a fine command of itself, however what elevates find to the next level is its ability to execute other commands. The argument for that is -exec. -exec consists of 3 parts: command arguments delimiter The syntax is: find <path/to/search> [search expression] -exec <command> <arguments> <delimiter> The command This is just any command that…