Skip to content
View mgleeson's full-sized avatar
🏗️
🏗️
  • eLearning Kaizen
  • Brisbane, Australia

Block or report mgleeson

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. moodle_db_backup moodle_db_backup Public

    A 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

  2. shellscripts shellscripts Public

    useful shell scripts

    Shell

  3. 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 (matt@mattgleeson.net)
    5
    #date :15-10-2014
  4. get_moodle_config.sh get_moodle_config.sh
    1
    #!/bin/bash
    2
    ######
    3
    # get_moodle_config.sh
    4
    # @author: Matt Gleeson <matt@mattgleeson.net>
    5
    # @version: 0.01
  5. regex_to_parse_moodle_config regex_to_parse_moodle_config
    1
    This 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... 
    2
    Ok, 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:
    3
     
    4
    ```
    5
    ^\$CFG->(\w*)\s*=\s?'(\w*)'\;