Skip to content

Instantly share code, notes, and snippets.

View basamoahjnr's full-sized avatar
🎯
Focusing

basamoahjnr

🎯
Focusing
  • yasobafinibus.com
  • Cedar City
View GitHub Profile
@basamoahjnr
basamoahjnr / rhel7-moodle.sh
Created September 14, 2021 19:53 — forked from mrverrall/rhel7-moodle.sh
A script that installs and configures all the core components for moodle on RHEL/Centos 7 leaving you with a running site complete with AV scanning and Memcached
#!/bin/bash
#
# This Bash script installs Moodle (http://moodle.org) and all it's
# requirements into a freshly installed Centos or RHEL 7 operating system.
# It assumes an 'Enforced' SELinux environment and configures the system
# accordingly.
#
# It is designed to be instructional and clear to read to persons unfamiliar
# with Bash and as such does *no* sanity checking before taking actions.
# Becasue of this *great* care should be taken if you feel the urge to run
@basamoahjnr
basamoahjnr / app.js
Created April 11, 2021 12:24 — forked from Gofilord/app.js
Sending a mail via ajax with a captcha
$('#submit').click(function(e) {
// e.preventDefault();
console.log('clicked submit');
var $errors = $('#errors'),
$status = $('#status'),
name = $('#name').val().replace(/<|>/g, ""), // no xss
email = $('#email').val().replace(/<|>/g, ""),
msg = $('#message').val().replace(/<|>/g, "");