-
eLearning Kaizen
- Brisbane, Australia
Pinned Loading
-
moodle_db_backup
moodle_db_backup PublicA shellscript to perform backups of a Moodle instance's database requiring only the location of the Moodle install to be specified, the relevant details being automatically gleaned from the Moodle …
Shell
-
-
install_webmin.sh
install_webmin.sh 1#!/bin/bash
2#title :install_webmin.sh
3#description :This script will install webmin on Debian/Ubuntu or RHEL/Centos based distros
4#author :Matt Gleeson ([email protected])
5#date :15-10-2014
-
get_moodle_config.sh
get_moodle_config.sh 1#!/bin/bash
2######
3# get_moodle_config.sh
4# @author: Matt Gleeson <[email protected]>
5# @version: 0.01
-
regex_to_parse_moodle_config
regex_to_parse_moodle_config 1This is in part a self education exercise, so while I'm sure there are other better ways people have done this, I was curious as to whether I could achieve it this way...
2Ok, so first I've bashed out (no pun intended) a regex pattern to capture the key value pairs of the moodle config in two capture groups as follows:
34```
5^\$CFG->(\w*)\s*=\s?'(\w*)'\;
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.