Skip to content

Instantly share code, notes, and snippets.

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

Cédric Darne cdarne

🏠
Working from home
View GitHub Profile
@cdarne
cdarne / png_mass_convert.zsh
Last active August 29, 2015 13:56
Convert PNGs to JPGs
for f (*_full.png) { convert $f "$(basename $f .png).jpg" }
@cdarne
cdarne / tutorial.md
Created June 26, 2014 11:04
EC2 simple rack app

Ruby Amazon EC2 server configuration

With an Ubuntu 14.04 standard AMI

Create 'app' user

$ sudo adduser --disabled-password app
@cdarne
cdarne / apache_setup.sh
Created May 24, 2012 11:17
Upstart/init.d config example for rails/passenger
sudo a2enmod proxy_http
sudo service apache2 restart
@cdarne
cdarne / 45custom_randr-settings
Created January 2, 2013 20:35
Automaticaly use the external display on boot for Ubuntu (12.10)
# Put in /etc/X11/Xsession.d/45custom_randr-settings
EXTERNAL_OUTPUT="VGA1"
INTERNAL_OUTPUT="LVDS1"
xrandr |grep $EXTERNAL_OUTPUT | grep " connected "
if [ $? -eq 0 ]; then
xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --auto
else
xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --off
@cdarne
cdarne / gist:5029162
Created February 25, 2013 11:08
Upstart script for XBMC ubuntu. It handle the start/stop of the wii remote service
# /etc/init/xbmc-wiiremote.conf
# xbmc-wiiremote - start service adding wii remote control for xbmc
description "service adding wii remote control for xbmc"
author "Cedric Darne"
start on starting lightdm
stop on stopped lightdm
setuid xbmc

API OGCA

L'API OGCA est une API publique qui présente les informations des colloques de l'AQUOPS. C'est une API HTTP REST au format JSON qui suit la spécification json:api.

Format

Tous les accès se font par HTTPS depuis https://ogca.aquops.qc.ca/api/v1. Toutes les données sont envoyées et recues en JSON.

Les champs vides sont inclus avec la valeur null au lieu d'être omis.