Skip to content

Instantly share code, notes, and snippets.

@dentex
dentex / flac2mp3_320k.sh
Created December 30, 2022 17:26
Yet Another FLAC to MP3 script
#!/bin/bash
#
# Copyright 2008 Octavio Ruiz
# Distributed under the terms of the GNU General Public License v3
# $Header: $
#
# Yet Another FLAC to MP3 script
#
# Author:
# Octavio Ruiz (Ta^3) <tacvbo@tacvbo.net>
@dentex
dentex / .conkyrc
Created December 30, 2022 17:51
Conky config files (go into the HOME folder) and Conky Interface Edit script (for networks and accent color change)
conky.config = {
use_xft = true,
font = 'Ubuntu:size=9',
use_xft = true,
override_utf8_locale = true,
update_interval = 2,
update_interval_on_battery = 8,
--total_run_times = 0,
double_buffer = true,
@dentex
dentex / rm_from_pihole_db.sh
Last active March 1, 2024 09:07
Remove (and search) specified domains (or clients) from the pi-hole's database.
#!/bin/bash
usage() {
echo "***************************************************"
echo "Valid commands are: 'remove' OR 'search'"
echo ""
echo "'remove' accepts the parameters: 'domain' OR 'client'"
echo -e " 'domain' accepts a domain's name (list) in the form:\n google.it\n it.somesite.com\n %anothersite.com (wildcard for subdomains)"
echo -e " 'client' accepts: a client IP (list) in the form:\n 192.168.1.xxx"