| command | description |
|---|---|
| ctrl + a | Goto BEGINNING of command line |
| #!/bin/bash | |
| # ANSI escape codes | |
| # Black 0;30 Dark Gray 1;30 | |
| # Red 0;31 Light Red 1;31 | |
| # Green 0;32 Light Green 1;32 | |
| # Brown/Orange 0;33 Yellow 1;33 | |
| # Blue 0;34 Light Blue 1;34 | |
| # Purple 0;35 Light Purple 1;35 | |
| # Cyan 0;36 Light Cyan 1;36 | |
| # Light Gray 0;37 White 1;37 |
I have recently come accross with a new solution to one of my biggest headaches in any linux system and it is to manage the nightmareof the dot files. I have previously used stow in order to mantain the symbolic links, but there is a much better solution using git bare repositories.
- Create a git bare repository with the following line
mkdir $HOME/.dotfiles
git init --bare $HOME/.dotfiles
- Create an alias for a better managing of the configuration
It can be useful to create wildcard domains for local services. Rather than create one for each local service, a wildcard is easier. It would be easy to use dnsmasq to do this, but Pihole no longer directly supports that.
There are two options to get this to work:
The developers of Pihole anticipated that we might have this very need. In the GUI, switch to Expert mode and then go to All Settings->Miscellaneous. Scroll down to misc.dnsmasq_lines where you can add individual values that will be injected into the configuration.
Add address=/.local.mydomain.com/192.168.1.16 for a wildcard. (The leading . is vital!)
