Simple example of how easy it is to jam numbers into InfluxDB and graph something with Grafana. I choose to use Travis as a source of historical time-series data.
Get InfluxDB installed with Homebrew
$ brew install influxdb
#!/bin/bash | |
set -e | |
MYSQL_DIR=/var/backups/mysql | |
ATTIC_DIR=/var/backups/attic | |
BACKUP_NAME=tip1.attic | |
BACKUP_SOURCES="/etc /home /usr/share/nginx ${MYSQL_DIR}" | |
REMOTE_DEST="[email protected]" | |
echo "=================" |
Src Reference: http://bernaerts.dyndns.org/download/ubuntu/install-mozilla-addon Article: http://bernaerts.dyndns.org/linux/74-ubuntu/271-ubuntu-firefox-thunderbird-addon-commandline
sudo apt-get install xvfb
sudo Xvfb :99.0 -ac
export DISPLAY=:99.0
# Reference: https://www.igvita.com/2007/02/13/building-dynamic-webrick-servers-in-ruby/ | |
require 'webrick' | |
class Echo < WEBrick::HTTPServlet::AbstractServlet | |
def do_GET(request, response) | |
puts request | |
response.status = 200 | |
end | |
def do_POST(request, response) | |
puts request |
#!/usr/bin/python | |
import sys | |
import json | |
from lvmjson import * | |
import argparse | |
if __name__ == "__main__": | |
AVAILABLE_COMMANDS = ["lvs", "vgs", "pvs", "dminfo"] |
#!/usr/bin/ruby -w | |
# coding: UTF-8 | |
=begin | |
API TISSEO pour le langage Ruby | |
auteur : Marc Quinton / décembre 2015 ; licence MIT | |
version : 0.1 ; toute contribution est bienvenue. | |
url: https://gist.github.com/ | |
key-words: toulouse, tisseo, ruby, rest |
Vous trouverez sur ce site, une interface (API) de programmation en langage Ruby pour adresser le Webservice TISSEO. Ce travail est en cours de réalisation (Work in progress). Soyez donc indulgents.
mots clés : TISSEO, API, REST, Ruby, Webservices, transport, metro, Toulouse.
#Introduction
#!/bin/bash | |
# | |
# lxc: linux Container library | |
# Authors: | |
# Original Debian: | |
# Daniel Lezcano <[email protected]> | |
# Changes for Raspberry Pi by: | |
# Oliver Heller <[email protected]> |
# Becomes /etc/letsencrypt/cli.ini. | |
# This is an example of the kind of things you can do in a configuration file. | |
# All flags used by the client can be configured here. Run Let's Encrypt with | |
# "--help" to learn more about the available options. | |
# Use a 4096 bit RSA key instead of 2048 | |
rsa-key-size = 4096 | |
# Uncomment and update to register with the specified e-mail address |
#!/usr/bin/ruby | |
# encoding: utf-8 | |
# author : Marc Quinton, april 2015 | |
# name : rvitalk : ruby P300 protocol implementation to handle IO to Viessmann heating systems | |
# object : connect to a Viessmann heating system via Optolink adaptator to query internal values. | |
# version : 0.5 - added write mode for commands, P300 constants, | |
# requirements : ruby >= 2.1, ruby-serialport, a serial USB optolink adapter, a Viessman heating system. | |
# licence : MIT | |
# links : http://openv.wikispaces.com/vcontrold ; https://gist.github.com/mqu |