Skip to content

Instantly share code, notes, and snippets.

@prondubuisi
prondubuisi / Gsoc-2019-report.md
Last active February 22, 2024 06:31
GSoC 2019 report for CiviCRM project; Static Code Analysis Integration and PHPUnit code coverage report Improvements for CiviCRM
@xurizaemon
xurizaemon / strip-triggers.sh
Created March 16, 2017 18:57
MySQL - strip trigger owners from a .sql dump
perl -pi -e 's#\/\*\!5001[7|3].*?`[^\*]*\*\/##g' dumpfile.sql
@xurizaemon
xurizaemon / what-is-logging.md
Last active May 15, 2019 20:55
What does the word logging mean in CiviCRM?

It's not uncommon to hear people mention "logging" or "logs" in relation to CiviCRM. There are some different usages of "log":

  • There's CiviCRM's debug log files in sites/default/files/civicrm/CiviCRM.HASHHASH.log (what)
  • There's the DB table log civicrm_system_log (has an API, only used for IPN data, see CRM_Utils_SystemLogger and forum post).
  • There's Data Logging configured at civicrm/admin/setting/misc (mysql logging via triggers). AKA Change Log or Trigger Logging or Detailed Logging.
  • There's "userFrameworkLogging", which means "dump errors to the CMS logging" (may be Drupal specific)
  • There's the Activity Log, which is the view of activities over ti
@arikfr
arikfr / README.md
Last active April 16, 2024 07:53
Redash Query Export Tool

Setup

$ pip install click requests

Usage

$ python query_export.py --redash-url "https://app.redash.io/" --api-key ""