Skip to content

Instantly share code, notes, and snippets.

@davidegironi
davidegironi / _git-stats.sh
Last active January 27, 2021 19:45
Script to collect git stats and save to mysql
# Git Stats
# Copyright (c) Davide Gironi, 2021
# Released under GPLv3
# Save git stats to mysql
@davidegironi
davidegironi / _bitbucket-git-downloader.sh
Created January 27, 2021 19:39
Script to download all repositories from a Bitbucket account
# Bitbucket Git Downloader
# Copyright (c) Davide Gironi, 2021
# Released under GPLv3
# Downloads all the repository from a Bitbucket account
@davidegironi
davidegironi / backuphelper.sh
Last active June 5, 2017 19:58
vSphere ESXi 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"
@davidegironi
davidegironi / RandomRainbowStop.ino
Created March 1, 2017 19:10
Arduino Random Rainbow Stop
/*
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.
# 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.
#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;
<?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