View _git-stats.sh
# Git Stats | |
# Copyright (c) Davide Gironi, 2021 | |
# Released under GPLv3 | |
# Save git stats to mysql |
View _bitbucket-git-downloader.sh
# Bitbucket Git Downloader | |
# Copyright (c) Davide Gironi, 2021 | |
# Released under GPLv3 | |
# Downloads all the repository from a Bitbucket account |
View backuphelper.sh
#!/bin/sh | |
#run this script at machine startup with option S | |
#if the machine is startup at selected day of week, hour and between minute interval then a shutdown is triggered | |
#the shutdown trigger can be disabled by deleting the shutdown trigger file | |
RUN_DAYOFWEEK=6 | |
RUN_HOUR=2 | |
RUN_MINUTEMIN=0 | |
RUN_MINUTEMAX=20 | |
BACKUP_CRONTABCMD="30 2 * * 6 /opt/ghettovcb/bin/ghettoVCB.sh -a -g /vmfs/volumes/backups01/backuphelper/ghettoVCB.conf > /vmfs/volumes/backups01/backuphelper/ghettoVCB.log" |
View RandomRainbowStop.ino
/* | |
Arduino Random Rainbow Stop | |
Random Led Strip Selection | |
Copyright (c) Davide Gironi, 2015 | |
References: | |
+ https://github.com/technobly/NeoPixel-KnightRider | |
+ https://github.com/adafruit/Adafruit_NeoPixel | |
Released under GPLv3. |
View MQ gas sensor datasheet correlation function coefficients estimation and constants estimations
# An R script to estimate MQ gas sensors correlation curve and compute Ro, min and max Rs/Ro | |
# | |
# Copyright (c) Davide Gironi, 2016 | |
# | |
# Released under GPLv3. | |
# Please refer to LICENSE file for licensing information. | |
# How to use this script: | |
# 1) set limits as datasheet curve ("xlim" and "ylim") | |
# ex. |
View DGDataTableUtils.cs
#region License | |
// Copyright (c) 2014 Davide Gironi | |
// | |
// Please refer to LICENSE file for licensing information. | |
#endregion | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; |
View xivelytrig.php
<?php | |
// Copyright (c) 2015 Davide Gironi | |
// | |
// Please refer to LICENSE file for licensing information. | |
// Xively trigger service for sending alert mail | |
// | |
// Installation and usage: | |
// Upload this script to your website |