Skip to content

Instantly share code, notes, and snippets.

View mohammadsalem's full-sized avatar

Mohammad Salem mohammadsalem

View GitHub Profile
@mohammadsalem
mohammadsalem / General.md
Last active August 28, 2019 16:31
General notes
  • ImageMagick did a security update prevented it from reading PDF files, to override it change the rights for PDF to "read" <policy domain="coder" rights="read" pattern="PDF" /> in the file /etc/ImageMagick-6/policy.xml

  • Use this query to see MySQL views where a column or table has been used

SELECT *
FROM INFORMATION_SCHEMA.VIEWS
WHERE TABLE_SCHEMA = 'DATABASE_NAME' AND VIEW_DEFINITION LIKE '%SEARCH%';
@mohammadsalem
mohammadsalem / DSpace notes.md
Last active September 7, 2019 17:48
List of problems, solutions and tricks for DSpace
DSpace docker solr data volume for the first time
  • Build and create dspace container without the volume
  • Copy the solr data docker cp dspace:/dspace/solr solrData
  • Re-create dspace container with a volume ./solrData:/dspace/solr
DSpace docker solr data volume (where there is a solr data)
  • Build and create dspace container with the volume
  • Enter dspace container as root docker exec -it dspace bash
  • Change the owner of solr data chown -R dspace:dspace /dspace/solr
  • Exit and restart the container docker restart dspace