Skip to content

Instantly share code, notes, and snippets.

View viscount-monty's full-sized avatar

viscount-monty

View GitHub Profile

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:

misc.dnsmasq_lines

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!)

Regex domain redirects

@viscount-monty
viscount-monty / Dotfiles_backup.md
Last active December 29, 2025 01:24 — forked from ennanco/Dotfiles_backup.md
Managing Linux dotfiles kept in $HOME (git bare repo)

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.

1. Creating the repository

  1. Create a git bare repository with the following line
    mkdir $HOME/.dotfiles
    git init --bare $HOME/.dotfiles
  1. Create an alias for a better managing of the configuration
@viscount-monty
viscount-monty / 01.bash_shortcuts_v2.md
Created December 22, 2025 14:02 — forked from tuxfight3r/01.bash_shortcuts_v2.md
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

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