Skip to content

Instantly share code, notes, and snippets.


GautierMichelin gautiermichelin

View GitHub Profile
View Zendesk-Statushero.php
In Zendesk :
- go to Settings > Extensions > Targets (Paramètres > Extensions > Cibles)
- add a target
- URL target
- Title : Zendesk-Statushero
- URL : https://DOMAIN/PATH/TO/THIS/SCRIPT?assignee={{}}&id={{}}&org={{}}&title={{ticket.title}}
gautiermichelin / clear_indexes.sql
Created Oct 12, 2018
Vider les index CollectiveAccess
View clear_indexes.sql
truncate table ca_sql_search_word_index;
truncate table ca_sql_search_words;
gautiermichelin /
Last active Sep 30, 2018 — forked from waja/
Migration from Debian Jessie to Stretch
# Release notes :
# upgrade to UTF-8 locales (
dpkg-reconfigure locales
# remove unused config file
rm -rf /etc/network/options /etc/environment
# migrate over to systemd (before the upgrade) / you might want reboot if you install systemd
gautiermichelin / IIIFService.php
Created May 14, 2018
Customized version of Pawtucket IIIFService.php to avoid a load error
View IIIFService.php
/** ---------------------------------------------------------------------
* app/lib/ca/Service/IIIFService.php
* ----------------------------------------------------------------------
* CollectiveAccess
* Open-source collections management software
* ----------------------------------------------------------------------
* Software by Whirl-i-Gig (
* Copyright 2016-2017 Whirl-i-Gig
gautiermichelin / test_connexion_ca.php
Last active May 7, 2018
Test de connexion à une instance de CollectiveAccess (Providence)
View test_connexion_ca.php
//The username or email address of the account.
define('USERNAME', $argv[1]);
print "\n".
"Test de connexion CollectiveAccess\n".
"2018, idéesculture\n\n".
gautiermichelin / export_uis_tsv.php
Last active Apr 12, 2018
Export in TSV all the screens and the bundles from a CollectiveAccess installation, using a user id (useful for reports)
View export_uis_tsv.php
$vt_user = new ca_users(16);
$vt_list_item = new ca_list_items();
print "Table CollectiveAccess | Editeur\tEcran de saisie\tLibellé du champs ou conteneur\tIdentifiant du champs ou conteneur\tType de données\n";
function getScreens($idno) {
gautiermichelin /
Last active Sep 12, 2019
Install FFMPEG on Debian 9
apt-get update -qq && apt-get -y install \
autoconf \
automake \
build-essential \
cmake \
git \
libass-dev \
libfreetype6-dev \
libsdl2-dev \
libtheora-dev \
gautiermichelin / test-medias-clean.php
Last active Feb 26, 2018
test medias for CollectiveAccess
View test-medias-clean.php
$list = new ca_lists("object_types");
// Getting list item id of the first object type defined
$first_object_type = reset(array_keys($list->getItemsForList("object_types")));
gautiermichelin / index.html
Last active May 3, 2019
Maintenance page Idéesculture
View index.html
<link href=",400,800" rel="stylesheet">
body {
font-family: "Encode Sans", helvetica, arial, sans-serif;
margin:20px 240px;
gautiermichelin / pdf2png
Created Nov 24, 2017
pdf2png as a simple command, using ghostscript and imagemagick
View pdf2png
convert -density 300x300 -units pixelsperinch $PDF -background white -alpha background -alpha off $PNG
You can’t perform that action at this time.