This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Supraheader idéesculture</title> | |
</head> | |
<body style="background-color: white;"> | |
<div id="supranav" style="padding:0;margin:0;"> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
shutdown = false | |
cnf_path = '/usr/local/etc/my_ramdisk.cnf' | |
ramdisk_path = '/Volumes/RAMDisk' | |
loop { case ARGV[0] | |
when 'shutdown' then ARGV.shift; shutdown = true | |
else break | |
end; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
mariabackup --stream=xbstream --backup --user root|pigz >mariadb-backup.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Optimized my.cnf configuration for MySQL/MariaSQL | |
# | |
# by Fotis Evangelou, developer of Engintron (engintron.com) | |
# Edited by zabustak | |
# Edited by GautierMichelin, idéesculture | |
# | |
# The settings marked with a specific comment or the word "UPD" (after the value) | |
# should be adjusted for your system by using database diagnostics tools like: | |
# | |
# https://github.com/major/MySQLTuner-perl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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={{ticket.assignee.name}}&id={{ticket.id}}&org={{ticket.organization.name}}&title={{ticket.title}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET FOREIGN_KEY_CHECKS=0; | |
truncate table ca_sql_search_word_index; | |
truncate table ca_sql_search_words; | |
SET FOREIGN_KEY_CHECKS=1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Release notes : http://www.debian.org/releases/stretch/releasenotes | |
# upgrade to UTF-8 locales (http://www.debian.org/releases/stretch/amd64/release-notes/ap-old-stuff.en.html#switch-utf8) | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** --------------------------------------------------------------------- | |
* app/lib/ca/Service/IIIFService.php | |
* ---------------------------------------------------------------------- | |
* CollectiveAccess | |
* Open-source collections management software | |
* ---------------------------------------------------------------------- | |
* | |
* Software by Whirl-i-Gig (http://www.whirl-i-gig.com) | |
* Copyright 2016-2017 Whirl-i-Gig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
error_reporting(E_ALL); | |
//The username or email address of the account. | |
define('USERNAME', $argv[1]); | |
print "\n". | |
"Test de connexion CollectiveAccess\n". | |
"----------------------------------\n". | |
"2018, idéesculture\n\n". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once("setup.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) { |
NewerOlder