Skip to content

Instantly share code, notes, and snippets.

View jeaguilar's full-sized avatar

Juan Aguilar jeaguilar

  • LEAF College Savings
View GitHub Profile
@pauldenato
pauldenato / dsp_importContentCsv.cfm
Last active November 16, 2020 21:52
Load Mura Media Player Content via CSV
<!---
Modified from Steve Withington's Import users via CSV:
https://gist.github.com/stevewithington/5051646
--->
<cfscript>
param name='form.csvUrl' default='';
param name='form.isSubmitted' default='false';
param name='form.isTest' default='true';
param name='form.siteid' default='default';
@stevewithington
stevewithington / muraDisableFrontEndTools.cfm
Last active April 27, 2018 19:15
Mura CMS : How to disable front end tools and front end editing for public facing sites. This would then allow you to completely delete/remove the 'admin' directory from the production server, and only host it on a dev/staging server that's hosted behind a firewall, assuming each instance is pointing to the same database. NOTE: Do NOT delete you…
<!---
1) Drop this method in your /config/cfapplication.cfm and modify it as you wish.
For example, maybe you only want to allow front end tools if editing the site behind your firewall
--->
<cfscript>
public boolean function getEnableFrontEndTools() {
return getPageContext().getRequest().getServerName() == 'someURLAccessibleOnlyBehindYourFirewall.com';
}
</cfscript>
@bradmontgomery
bradmontgomery / install-comodo-ssl-cert-for-nginx.rst
Last active June 10, 2024 15:37
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@aarongrando
aarongrando / gist:1635158
Created January 18, 2012 19:53
jQuery UI Autocomplete Facebook Friends
$(function() {
// Depends on: jQuery, jQuery UI core & widgets (for the autocomplete method)
// Assumes you're already including the FB JS SDK asynchronously...
window.fbAsyncInit = function() {
FB.init({
appId : 'xxxxxxxxxxxxxxxxxx', // App ID
status : true, // check login status