Skip to content

Instantly share code, notes, and snippets.

View jraddaoui's full-sized avatar

José Raddaoui Marín jraddaoui

  • Artefactual Systems Inc.
  • Seville, Spain
View GitHub Profile
function prodlog($message = "", $value = "")
{
$logFile = "./log/qubit_prod.log";
if ($value != null) {
$logMessage = $message.": ";
if (is_string($value)) {
count($value) > 0 ? $logMessage .= $value : $logMessage .= 'no value';
} elseif (is_bool($value)) {
@fiver-watson
fiver-watson / load-demo.sh
Last active February 22, 2024 20:53
This is a bash script that can be used with the Access to Memory (AtoM) Vagrant box, to quickly purge the current environment and reload the demo data. Requirements: This script has been updated for the AtoM 2.7.0.0 and/or 2.6.0.2 vagrant boxes, and therefore works with Ubuntu 18.04, PHP 7.2, and MySQL 8. The uploads directory and the sqldump mu…
# AtoM bash script to load demo data into a vagrant environment
# Created by Dan Gillean, Artefactual Systems - [email protected]
# CC-BY-SA 4.0
# v1 created June 29, 2018
# v2 - fix typos, June 29, 2018
# v3 - update for AtoM 2.6 compatibility, March 31, 2020
# v4 - introduce optional choice for regen derivs, July 29, 2020
# v5 - simplify uploads/downloads replacement; add change log, July 30, 2020
# Requirements for this version: AtoM 2.6 or higher