This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) <[email protected]> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Scripts location directory | |
scr_dir="$HOME/bin/script-launcher.d" | |
# Search for executable files only in "$scr_dir" and store them in an array: | |
arr=( `find $scr_dir/* -type f -executable -printf '%f\n' | sort -n` ) | |
# Show `zenity` list dialog | |
scr=$(zenity --width 400 --height 520 --list --title "Scripts Launcher" --text "Select the script to be executed" --radiolist --column "" --column "scripts list" `for item in ${arr[*]}; do printf "%s\n" FALSE $item; done` 2>/dev/null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Kritary - Krita Rotary Zoom and Brush Size Controller | |
* [Using a Digispark (ATtiny85) and a rotary encoder] | |
* | |
* Copyright (C) 2020 Samuele RINI <samuele.rini76 [AT] gmail.com> | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
code adapted from https://github.com/ade1963/RaspberrySensorsBot | |
working on a Samsung Galaxy S2 (GT-I9100), with Lineage OS 14.1 | |
dependencies to install on the SGS2: | |
IP Webcam android app -> https://play.google.com/store/apps/details?id=com.pas.webcam | |
QPython -> https://play.google.com/store/apps/details?id=org.qpython.qpy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Notes to make IR shield (made by LinkSprite) work in Raspberry Pi 3 (bought from Amazon [1]). | |
The vendor has some documentation [2] but that is not complete and sufficient for Raspbian Stretch. | |
Following are the changes that I made to make it work. | |
$ sudo apt-get update | |
$ sudo apt-get install lirc | |
# Add the following lines to /etc/modules file | |
lirc_dev | |
lirc_rpi gpio_in_pin=18 gpio_out_pin=17 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# script name | |
SC=`basename $0` | |
############### CONFIG ################ | |
user="<<DNSDYNAMIC-ACCOUNT-EMAIL>>" | |
pw="<<DNSDYNAMIC-ACCOUNT-PASSWD>>" | |
domain="<<DNSDYNAMIC-DOMAIN-TO-UPDATE>>" |
NewerOlder