Skip to content

Instantly share code, notes, and snippets.

View mqu's full-sized avatar
🏠
Working from home

Marc Quinton mqu

🏠
Working from home
  • DGAC / DSNA / DTI
  • Toulouse / France
View GitHub Profile
@cm6051
cm6051 / attic-backups
Last active September 30, 2016 20:56
Backup script using Attic
#!/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 "================="
@kennethkalmer
kennethkalmer / _README.md
Last active January 2, 2021 11:06
Simple start with InfluxDB & Grafana using Travis as a source of historical data

InfluxDB & Grafana starter pack

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.

Dependencies

Get InfluxDB installed with Homebrew

$ brew install influxdb
@eddiejaoude
eddiejaoude / README.md
Last active September 18, 2024 07:21
Install Firefox addon/extension with no user interaction
@dtchepak
dtchepak / echo.rb
Last active September 12, 2022 07:24
Simple Ruby HTTP server to echo whatever GET or POST requests come through. Largely based on https://www.igvita.com/2007/02/13/building-dynamic-webrick-servers-in-ruby/.
# 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
@csonto
csonto / lvm-json
Created September 29, 2015 16:22
lvm-json
#!/usr/bin/python
import sys
import json
from lvmjson import *
import argparse
if __name__ == "__main__":
AVAILABLE_COMMANDS = ["lvs", "vgs", "pvs", "dminfo"]
anonymous
anonymous / tisseo.rb
Created November 28, 2015 10:30
class Ruby permettant l'accès à l'API TISSEO
#!/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
@mqu
mqu / readme.md
Last active May 15, 2024 13:40 — forked from anonymous/tisseo.rb
classe Ruby permettant l'accès à l'API TISSEO

TISSEO API for Ruby Language

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

@tpokorra
tpokorra / lxc-pi
Created January 20, 2016 07:19
lxc container Raspberry Pi
#!/bin/bash
#
# lxc: linux Container library
# Authors:
# Original Debian:
# Daniel Lezcano <[email protected]>
# Changes for Raspberry Pi by:
# Oliver Heller <[email protected]>
@antillean
antillean / letsencrypt-cli.ini
Last active July 9, 2025 21:51
Sample letsencrypt-cli.ini file
# 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
@artekw
artekw / rvitalk.rb
Created November 22, 2016 20:05 — forked from mqu/rvitalk.rb
rvitalk : ruby P300 protocol implementation to handle IO to Viessmann heating systems
#!/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