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 / 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 / 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 / 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 / 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 / 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 / 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 / xpi2deb.sh
Last active July 27, 2017 14:31
xpi2deb - convert XPI (thunderbird and firefox extensions) to debian packages
#!/bin/sh
# xpi2deb - convert XPI (thunderbird and firefox extensions) to debian packages
# author : Marc Quinton/DSNA-DTI quinton_@_cena_.fr / july 2017
#
# this script convert XPI extensions to .deb packages
# and is based on https://github.com/mdom/debianize-xpi script
#
# - dependancies : apt-get install mozilla-devscripts curl unzip xmlstarlet devscripts
# - usage : xpi2deb path-to-xpi (debian package is created on current directory)
@mqu
mqu / ier411.rb
Last active August 3, 2017 07:05
ruby API for IER-411french ANSP strip printer
#!/usr/bin/ruby
# ier411.rb - ruby API to manage and write to IER-411 strip printer
#
# author : Marc Quinton / 2017.08 - DSNA-DTI/EEI.
# link : https://gist.github.com/mqu/85a3b60a64a963e771962b8d27e03da9
#
# keywords : ATC, ANSP, strip, printer, ruby, serial, xon-xoff.
#
# simple API to manage and write to IER-411 strip printer, later in use in French ANSP airports
@mqu
mqu / f3 usage
Last active February 6, 2020 18:51
quick and dirty sdcard (microsd) flash test script (and links). Comments are welcome.
F3(1) test real flash memory capacity F3(1)
NAME
f3write, f3read - test real flash memory capacity
SYNOPSIS
f3write [--start-at=NUM] [--end-at=NUM] <PATH>
f3read [--start-at=NUM] [--end-at=NUM] <PATH>
DESCRIPTION
@mqu
mqu / Dockerfile
Created October 18, 2017 11:19
Yadicts - Dockerfile preliminary snapshot for Yadicts project.
FROM ubuntu:trusty
MAINTAINER [email protected]
# Yadics Dockerfile : http://yadics.univ-lille1.fr/wordpress/?page_id=57
# see : https://linuxfr.org/forums/linux-debian-ubuntu/posts/empaqueter-une-appli-dans-docker
# download url
ARG url=http://yadics.univ-lille1.fr/wordpress/wp-content/plugins/filedownload/download.php/?path=http://yadics.univ-lille1.fr/wordpress/wp-content/uploads/2015/05/YaDICs_Project.zip&type=&check=&referer=/wordpress/?page_id=2
# dependencies : http://yadics.univ-lille1.fr/wordpress/?page_id=57