Skip to content

Instantly share code, notes, and snippets.

View JamoCA's full-sized avatar

James Moberg JamoCA

View GitHub Profile
@mhingston
mhingston / swal-override.js
Created June 11, 2015 10:01
Override native alert, confirm and prompt functions with prettier versions and optional callbacks
/*
Include SweetAlert before this script
http://t4t5.github.io/sweetalert
*/
function alert(message, callback)
{
callback = callback || function(){}
var options =
{
@JamoCA
JamoCA / GraphicsMagick.cfm
Last active March 25, 2023 08:37
ColdFusion Custom Tag for GraphicsMagick. Faster than ColdFusion's CFImage/java processing. Smaller output files. Better CMYK compatibility. Works with more image formats. (Set timout=0 to have image manipulation performed in the background; 0ms)
<CFSETTING ENABLECFOUTPUTONLY="YES">
<!---
NAME: CF_GraphicsMagick
DESCRIPTION: ColdFusion wrapper for some GraphicsMagick routines. Faster than CFImage. Generates smaller images. Better
CMYK compatilibity (Adds compatibility to CF9.)
Works with more images formats, including EPS: http://www.graphicsmagick.org/formats.html
EXAMPLES:
<CF_GraphicsMagick action="AspectScale" Infile="#ImageIn#" Outfile="#imageOut#" width="#W#" height="#H#">
@guillaumemolter
guillaumemolter / saml-response.cfm
Created August 10, 2015 14:24
Reading, decoding and inflating a SAML XML respone with Coldfusion
<!---
Reading, decoding and inflating a SAML XML respone with Coldfusion
This script is heavily inspired by the following posts:
- Ciarán Archer : https://flydillonfly.wordpress.com/2011/06/28/using-coldfusion-to-unzip-a-gzip-base64-string/
- Ryan Loda : http://www.coderanch.com/t/545270/java/java/Decode-SAML-Request
- Ben Nadel : http://www.bennadel.com/blog/1343-converting-a-base64-value-back-into-a-string-using-coldfusion.htm
--->
@JamoCA
JamoCA / Comment-Spam-Email-Addresses.txt
Last active March 6, 2024 18:02
A list of email addresses (or domains when the username is randomized) that are actively blocked using our internal feedback form and/or comment spam filters. Updated regularly. Last Updated: 2024-03-06 (When comparing, sanitize gmail addresses to remove dots & + https://gist.github.com/JamoCA/6f46af76a3f8b9975ccc0623602a92f1 )
@30secondexplainervideos.com
@3dAnimatedVideos.com
@5cvirtualsolutions.com
@90secondexplainervideos.com
@accurate.com
@acquimail.com
@adkarma.com
@advancefunding.xyz
@advantagecapital.xyz
@affiliatesitemasters.com
@bdw429s
bdw429s / task.cfc
Last active February 23, 2022 22:50
Scan a folder of jars recursively for CVE-2021-44228 vulnerability
/**
* Scan all jars in folder recursivley for log4j vuln
*/
component {
property name="progressableDownloader" inject="ProgressableDownloader";
property name="progressBar" inject="ProgressBar";
/**
* @scanPath absolute or relative path to folder to look for jars
*/