Categories
Linux Uncategorized

server

nmcli device show
Categories
Uncategorized

Rants

CMake

On and off, over the years, I really tried to like cmake. “It does everything! It does it fast It finds libraries for you!”.

CMake is not special. It is yet another bloated tool that requires way too many hours of reading documentation to find out how best to use it. Just tried to add postgres library libpq to work with my c++ program. The documentation said, oh, just use find library postgresql.

yeah.

If you cannot get a tool to work for you within a reasonable amount of time, get rid of it. Cmake is now off my system and I am not looking back.

Categories
Uncategorized

Arduino-cli Documentation

Now working with arduino nano at the command line. The ide is ok but I like cli.

Link to arduino-cli documentation

https://arduino.github.io/arduino-cli/0.19/getting-started/

New sketch:

arduino-cli sketch new <<SketchName>>

A new sketch is generated in its own directory.

Board List:

arduino-cli board list
arduino-cli board listall

command to list all the boards currently found

Core:

arduino-cli core install arduino:mbed_nano

core, to me, is a library for the particular arduino I am currently working with. The above command installs the core for the arduino card currently being worked with, in my case, mbed_nano

arduino-cli core list:

arduino-cli core list

lists the cores currently available for use.

Categories
Mariadb Uncategorized

mysql add user

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';

https://www.digitalocean.com/community/tutorials/how-to-create-a-new-user-and-grant-permissions-in-mysql