Skip to content

Instantly share code, notes, and snippets.

View gautiermichelin's full-sized avatar

GautierMichelin gautiermichelin

View GitHub Profile
@gautiermichelin
gautiermichelin / .block
Last active May 16, 2016 20:34 — forked from mbostock/.block
Focus+Context via Brushing
license: gpl-3.0
license: gpl-3.0
@gautiermichelin
gautiermichelin / remark-presentation.html
Created May 15, 2016 05:32
Fast html to load a presentation.md (markdown) file to remark.js
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Presentation</title>
<link rel='stylesheet' type='text/css' href='presentation.css'>
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js'></script>
<script src='https://gnab.github.io/remark/downloads/remark-latest.min.js'></script>
</head>
<body>
@gautiermichelin
gautiermichelin / vnc-install.sh
Last active May 13, 2016 04:20
Install VNC as a service under Ubuntu 16.04 (need to be run as root)
# ##################################################################
# Script Name : vnc-install.sh
# Description : Perform an automated install of X11Vnc
# Configure it to run at startup of the machine
# Date : May 2016
# Gautier Michelin, idéesculture
# Based on : Griffon, http://www.c-nergy.be - http://www.c-nergy.be/blog
# #################################################################
# Step 1 - Install X11VNC
# #################################################################
@gautiermichelin
gautiermichelin / zip.php
Created February 27, 2016 10:51 — forked from jonmaim/zip.php
PHP script to remotely create zip archives of your FTP
<?php
/*
*
* This script will backup your web site by remotely archiving all files on the root FTP directory.
* It will work even if your web server is memory limited buy splitting zips in several arhive files it they are too many files.
* All zip files will be stored in a directory called temporary which must be writable.
*
* How to use it:
* - Place the script at the root of your FTP.
@gautiermichelin
gautiermichelin / toc.js
Created January 4, 2016 21:47
TOC jquery for CDN execution
/*!
* toc - jQuery Table of Contents Plugin
* v0.3.2
* http://projects.jga.me/toc/
* copyright Greg Allen 2014
* MIT License
*/
/*!
* smooth-scroller - Javascript lib to handle smooth scrolling
* v0.1.2
<?php
/** ---------------------------------------------------------------------
* app/lib/core/Auth/Adapters/PafiPlatformExternalDB.php : External database authentication backend using Joomla for CollectiveAccess
* ----------------------------------------------------------------------
* CollectiveAccess
* Open-source collections management software
* ----------------------------------------------------------------------
*
* Software by Whirl-i-Gig (http://www.whirl-i-gig.com)
* Copyright 2014 Whirl-i-Gig
<?php
/** ---------------------------------------------------------------------
* app/lib/core/Auth/Adapters/PafiExternalDB.php : External database authentication backend using Joomla for CollectiveAccess
* ----------------------------------------------------------------------
* CollectiveAccess
* Open-source collections management software
* ----------------------------------------------------------------------
*
* Software by Whirl-i-Gig (http://www.whirl-i-gig.com)
* Copyright 2014 Whirl-i-Gig

Keybase proof

I hereby claim:

  • I am gautiermichelin on github.
  • I am gautiermichelin (https://keybase.io/gautiermichelin) on keybase.
  • I have a public key whose fingerprint is E7FD B88C 31D2 1C45 8096 71FF E663 1B33 C92C 9963

To claim this, I am signing this object:

@gautiermichelin
gautiermichelin / objects_list_items.sql
Created August 14, 2015 05:34
CollectiveAccess SQL request : used list items inside object records
SELECT ca_list_labels.list_id,
ca_list_labels.`name`,
ca_attribute_values.item_id,
ca_list_item_labels.name_singular,
group_concat(distinct ca_attributes.row_id) as objets
FROM ca_list_labels LEFT OUTER JOIN ca_lists ON ca_list_labels.list_id = ca_lists.list_id
LEFT OUTER JOIN ca_list_items ON ca_lists.list_id = ca_list_items.list_id
LEFT OUTER JOIN ca_attribute_values ON ca_list_items.item_id = ca_attribute_values.item_id
LEFT OUTER JOIN ca_list_item_labels ON ca_list_item_labels.item_id = ca_attribute_values.item_id
LEFT OUTER JOIN ca_attributes ON ca_attribute_values.attribute_id = ca_attributes.attribute_id
@gautiermichelin
gautiermichelin / elissa.sql
Created July 31, 2015 05:58
E-lissa (decalog) simple db structure extraction
SELECT notices.Titre,
sup1.ISBN,
sup1.Qualif_ISBN,
stitre.Sous_Titre,
para.Titre_Para,
t_forme.Titre_Forme,
t_uni.Titre_Uniforme,
langue.Lib_Langue,
langue.Code_Langue,
langue_originale.Lib_Langue AS Lib_Langue_Originale,