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
@mqu
mqu / build-driver.bash
Last active March 5, 2017 06:44
building epson driver for Raspbian
#!/bin/bash script
# keywords : epson, driver, printer, raspbian, debian, debuild, cups
# got to http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX and select your printer
# download and extract source
# install required packages
apt-get install cups libcups2-dev libcupsimage2-dev gawk devscripts
cd src-dir
@mqu
mqu / disk_config_btrfs-01.conf
Last active February 10, 2017 08:12
fai setup-storage grammar
# first example using BTRFS
# ---------------------------------------------------------------
# disks configuration (partitionning)
# -----------------------------------
# one drive
# -1 : create a primary partition, greater than 1GB,
# - disk is named "disk1"
disk_config disk1 disklabel:msdos bootable:1
@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

@mqu
mqu / apn-config.txt
Created November 3, 2015 07:44 — forked from anonymous/apn-config.txt
configuration APN / Orange / Forfait Let's Go
Nom : orange
APN : orange.fr
Nom d'utilisateur : orange
Mot de passe : orange
MCC : 208
MNC : 01
Type d'authentification : PAP
Type d'APN : default
keywords : APN, Android, 3G, 4G, orange, let's Go, ISP.
@mqu
mqu / attic-backup
Last active July 7, 2023 09:25
ATTIC backup wrapper script in bash
#!/bin/bash
# author : Marc Quinton, 2015.
# licence : MIT
# attic : links
# - http://peterjolson.com/full-system-backup-using-attic-backup-to-nfs/
# - https://attic-backup.org/
# - https://en.wikipedia.org/wiki/Attic_%28backup_software%29
# - https://www.debian-administration.org/article/712/An_introduction_to_the_attic_backup_program
@mqu
mqu / dream-cheeky.rb
Created July 21, 2015 14:57
Dream Cheeky / Big Red button class for ruby language using FFI.
#!/usr/bin/ruby
# coding: UTF-8
# ruby API for Dream Cheeky Big Red button device : http://dreamcheeky.com/big-red-button
# author : Marc Quinton
# licence : MIT
# date : july 2015.
# depends : ruby-ffi,
# tested on : debian/jessie, ruby 2.1
#
@mqu
mqu / 00-readme.md
Last active November 16, 2015 07:46
an HIDAPI interface, using FFI, for Ruby language, to Delcom button.

Delcom-FFI library

this is delcom-ffi.rb, a library interface to Delcom button/light using HIDAPI based on FFI.

Using Delcom library - hight level fonctions

This library is build in an all-in-one file for easy of use. You can split it by class. This library is know to work with push-button light family, especialy modele 706562

initializing button object instance

@mqu
mqu / ivy-example-01.rb
Last active August 29, 2015 14:22
ivy-ffi.rb - FFI implementation for IVY bus in Ruby language.
#!/usr/bin/ruby
$:.unshift( ".." )
require "ivy-ffi"
ivy = Ivy.initialize("ruby")
ivy.start( )
msg = ivy.bindmsg( "^quit$" ) { |app, msg|
/*
* Arduino Push button
* -------------------
*
* - connect push button to ground and digital pin 2
* - compile and upload program to your arduino,
* - open a terminal to display output : cat /dev/ttyUSB*
* - all times are in mili-seconds
*
*/
@mqu
mqu / rvitalk.rb
Last active December 30, 2018 10:14
rvitalk : ruby P300 protocol implementation to handle IO to Viessmann heating systems - outdated : please have a look at : https://github.com/mqu/viessmann-mqtt/
#!/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