This file contains 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 | |
# | |
# 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 |
This file contains 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
$('#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, ""); |
This file contains 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
[user_defaults](!) | |
type = wizard | |
transport = transport-ipv4 | |
accepts_registrations = yes | |
sends_registrations = no | |
accepts_auth = yes | |
sends_auth = no | |
has_hint = yes | |
hint_context = internal | |
endpoint/context = internal |
This file contains 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
package com.matrix.calculator; | |
import java.io.*; | |
import java.util.Scanner; | |
public class Calculator { | |
public static void main(String[] args) { | |
// write your code here |
This file contains 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
sudo yum upgrade -y | |
sudo yum -y install yum-plugin-fastestmirror | |
sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org | |
sudo rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm | |
sudo yum --enablerepo=elrepo-kernel install kernel-lt -y | |
sudo yum --enablerepo=elrepo-kernel -y swap kernel-headers -- kernel-lt-header -y | |
sudo yum --enablerepo=elrepo-kernel -y swap kernel-tools-libs -- kernel-lt-tools-libs -y |