WITH RECURSIVE category_hierarchy AS (
SELECT
id,
NAME,
parent,
0 AS level,
NAME AS path
FROM
mdl_course_categories
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE workflow PUBLIC "-//OpenSymphony Group//DTD OSWorkflow 2.8//EN" "http://www.opensymphony.com/osworkflow/workflow_2_8.dtd"> | |
<workflow> | |
<meta name="jira.description">Jira Standard Product workflow</meta> | |
<meta name="jira.update.author.id">5a6893f55552234543235831</meta> | |
<meta name="jira.update.author.key">5a6893f55552234543235831</meta> | |
<meta name="jira.updated.date">1710749387249</meta> | |
<initial-actions> | |
<action id="1" name="Create"> | |
<validators> |
@@ -265,7 +265,10 @@ class grade extends tablelike implements selectable_items, filterable_items {
}
if (array_key_exists($key, $lineclasses)) {
$cell->attributes['class'] = $lineclasses[$key];
}
+ if($lineclasses[$key] =='user'){
+ $cell->attributes['data-gtu'] = $item->id;
+ }
This file contains hidden or 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
[show all button] | |
--- a/question/classes/local/bank/view.php | |
+++ b/question/classes/local/bank/view.php | |
@@ -1374,7 +1374,12 @@ class view { | |
echo \html_writer::start_tag('div', | |
['class' => 'question_table', 'id' => 'question_table']); | |
$this->print_table($questions); | |
- echo \html_writer::end_tag('div'); | |
+ echo \html_writer::end_tag('div'); | |
+ if ($this->totalcount > $this->pagesize) { |
This file contains hidden or 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
##2x large | |
<IfModule mpm_prefork_module> | |
StartServers 10 | |
MinSpareServers 10 | |
MaxSpareServers 30 | |
ServerLimit 600 | |
MaxRequestWorkers 600 | |
MaxConnectionsPerChild 5000 | |
</IfModule> |
This file contains hidden or 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
#!/bin/bash | |
find . -maxdepth 1 -mindepth 1 -type d -name "*" | while read d; do | |
echo $d | |
## will replace utf8_general_ci to utf8mb4_unicode_ci | |
find $d/config.php -type f -exec sed -i -e 's/utf8_general_ci/utf8mb4_unicode_ci/g' {} \; | |
/usr/bin/php $d/admin/cli/mysql_collation.php --collation="utf8mb4_unicode_ci" | |
done |
This file contains hidden or 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
## command line msmtp tool to test if smtp is working or not. | |
cat message.txt | msmtp --auth=on --tls=on \ | |
--host smtp.gmail.com --port 587 \ | |
--user abc@email.invalid \ | |
--read-envelope-from --read-recipients |
This file contains hidden or 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 'config.php'; | |
require_once($CFG->libdir.'/questionlib.php'); | |
require_once($CFG->libdir.'/csvlib.class.php'); | |
require_admin(); | |
raise_memory_limit(MEMORY_HUGE); | |
ini_set('max_execution_time', 600); | |
$from = optional_param("from",0,PARAM_INT); | |
$to = optional_param("to",0,PARAM_INT); | |
$where= [] ; |
NewerOlder