How to Renew SSL Certificate for law.gmu.edu

Log into cPanel (GoDaddy) and go to SSL/TLS Generate CSR and fill out all the information. Request SSL certificate from ITS. Submit a request to get a certificate. Once you get it from ITS, go back to cPanel – SSL and then go to certificates Then upload the .crt file that ITS gave you Go … Continue reading “How to Renew SSL Certificate for law.gmu.edu”

Force Update of PDFs

When replacing an existing PDF, browsers don’t serve the latest version. They usually serve the cached version. To change that, we use Apache directives as below: # Instruct browsers to always check for the latest version of your files using Apache directives <IfModule mod_headers.c> <FilesMatch "(?i)^.*\.(css|htm|html|gif|jpg|jpeg|js|png|pdf)$"> Header set Cache-Control "max-age=0,must-revalidate" </FilesMatch> </IfModule> The instruction above … Continue reading “Force Update of PDFs”

Remove Periods from Degrees

For example, replace J.D. or L.L.M to JD or LLM. Here’s the JavaScript method: <script> function removePeriods() { var str = document.getElementById("c_degrees").innerHTML; var res = str.replace(/\./g, ""); document.getElementById("c_degrees").innerHTML = res; } window.onload = removePeriods; </script> To do it in MODX, create a chunk called FixDegrees: A.B.:AB,A.M.:AM,B.A.:BA,B.B.A.:BBA,B.C.:BC,B.Com.:BCom,B.E.E.:BEE,B.I.E.:BIE,B.F.A.,BFA:B.L.:BL,B.M.:BM,B.M.E.:BME,B.S.:BS,B.S.E.:BSE,B.S.E.E.:BSEE,D.Jur.:DJur,D.O.:DO,J.D.:JD,J.S.D.:JSD,J.S.P.:JSP,Ed.D.:EdD,Ed.S.:EdS,LL.B.:LLB,LL.D.:LLD,LL.L.:LLL,LL.M.:LLM,M.A.:MA,M.A.S.:MAS,M.B.A.:MBA,M.Ed:MEd,M.Fc.:MFc,M.L.I.S.:MLIS,M.L.S.:MLS,M.D.:MD,M.Ed.:MEd,M.S.:MS,M.Sc.:MSc,M.S.E.E.:MSEE,M.S.L.S.:MSLS,M.T.:MT,P.G.C.E.:PGCE,Ph.D.:PhD,Cert. of Legal Educ.:Cert of Legal Educ,M.P.P.:MPP,S.J.D.:SLD Than create a … Continue reading “Remove Periods from Degrees”

PHP Script Swapping out GA codes

This script was used to delineate Google Analytic Tracking codes between four different sites sharing the same wordpress theme files. Originally placed in footer.php above the GA tracking code provided by Google. <?php $host = ‘https://’ . $_SERVER[‘SERVER_NAME’] . $_SERVER[‘REQUEST_URI’]; if (strpos($host,’sls’) !== false) { $gacode =”UA-792782-19″; } elseif (strpos($host,’gai’) !== false) { $gacode =”UA-792782-21″; … Continue reading “PHP Script Swapping out GA codes”

Installing an SSL Certificate on Apache

DigiCert: How to create a CSR (Certificate Signing Request) How to install SSL Certificate on Apache Godaddy: Apache: Generate CSR (Certificate Signing Request) Install a certificate (CentOS) Guide: Moving to HTTPS Once a certificate and key have been purchased and generated, you will need to upload the files to your server. If FTP is enabled … Continue reading “Installing an SSL Certificate on Apache”

Upgrade wget on CentOS 5

Instruction on how to install wget from the source: cd ~ wget http://ftp.gnu.org/gnu/wget/wget-1.16.tar.gz yum -y remove wget tar -xzvf wget-1.16.tar.gz cd wget-1.16 ./configure –with-ssl=openssl –with-libssl-prefix=/usr/lib64/openssl –prefix=/usr make && make install Original article.

Add Breaking News on The Mason Law’s Homepage

To post one announcement on the Mason Law homepage, use this example: ANNOUNCEMENTS: <a href="">Information on Spring 2015 Laptop Exams</a> To post multiple news, use this example: <div class="announcements">Announcements:</div> <ul> <li><a href="[~15~]">Spring 2013 Class Schedule and Registration Information</a></li> <li><a href="[~8476~]">Information on Fall 2012 Laptop Exam Software</a></li> </ul>