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

Block or report mgleeson

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
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 ([email protected])
    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 <[email protected]>
    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*)'\;