Skip to content

Instantly share code, notes, and snippets.

View JamoCA's full-sized avatar

James Moberg JamoCA

View GitHub Profile
@coldfusionPaul
coldfusionPaul / gist:3779416
Created September 25, 2012 01:16
coldfusion G11N

The Basics of Building a Globalized ColdFusion Application

What is Globalization?

The process of making an application ready for global usage is globalization or G11N (for the 11 letters between the G and the N in globalization). Basically globalization consists of two steps, internationalization or I18N (for the 18 letters between the I and N in internationalization) and localization or L11N (for the 10 letters between L and N in localizatio—if you're sensing a pattern here, yes there is, people working in this field are particularly fond of numeronyms). The atomic units for globalization are locales. Locales are the most important piece of G11N.

Locales

Locales are languages and calendars; date, number, and currency

@shaunluttin
shaunluttin / ChocolateyPackage
Last active January 2, 2016 15:49
Rebuild the BigFont development computer using a chocolatey.org script via the http://boxstarter.org/WebLauncher. See also http://hanselman.com/tools. Alternatively, install Chocolatey, then open PowerShell to run individual commands.
choco install 7zip -y
choco install anyvideoconverter -y
choco install jivkok.autohotkey -y
choco install autoruns -y
choco install avastfreeantivirus -y
choco install conemu -y
choco install f.lux -y
choco install fiddler -y
choco install filezilla -y
choco install FoxitReader -y
@RichardDavies
RichardDavies / proxy.cfm
Created November 18, 2009 19:50
After the Deadline ColdFusion proxy
<!--- After the Deadline Proxy Script
ColdFusion port by Richard Davies - http://www.richarddavies.us
Version 1.0
--->
<cfsetting showdebugoutput="false" />
<!---
You get the option of hardcoding your API key here. Do this if you don't want people seeing
@gsherman
gsherman / IIS7: rewrite cookies to be httponly
Created January 20, 2011 22:40
a rewriting rule that adds "HttpOnly" to any out going "Set-Cookie" headers
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!--
Rewrite any outgoing "Set-Cookie" headers to be "HttpOnly"
Requires the IIS7 URL Rewrite Module, available from: http://www.iis.net/download/urlrewrite
-->
<rewrite>
<outboundRules>
<rule name="Add HttpOnly" preCondition="No HttpOnly">
@stevereich
stevereich / googleURL.cfc
Created September 27, 2012 05:43
Coldfusion Functions for Google URL Shortener API
<cfscript>
component output="false" {
public googleURL function init(apiKey)
description="Initialize this CFC as an object"
{
variables.apiKey = arguments.apiKey;
return this;
}
public string function ShortenURL(required string url)
@cflove
cflove / ups.cfc
Last active December 2, 2020 18:32
Creating a UPS Shipping Label with UPS API & ColdFusion http://cflove.org/2010/12/ups-shipping-label-with-coldfusion.cfm
<cfcomponent displayname="USP">
<!--- ********************************************************************************************** --->
<!--- Hint: Before start, add correct default values for arguments currently marked with xxxxxxxxxxx --->
<!--- ********************************************************************************************** --->
<cffunction name = "init" access= "Public" output = "No" returntype= "Any">
<!--- UPS Access Settings --->
<cfargument name="License" type="string" required="No" default="xxxxxxxxxxx" hint="UPS License Key" />
<cfargument name="Account" type="string" required="No" default="xxxxxxxxxxx" hint="UPS Account ID" />
@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
--->
@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 =
{
@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
*/
@Asparagirl
Asparagirl / gist:6202872
Last active March 28, 2022 20:28
Want to help Archive Team do a "panic grab" of a website, so that you can later upload it to the Internet Archive for inclusion in its WayBack Machine? Here's the code!

Want to grab a copy of your favorite website, using wget in the command line, and saving it in WARC format? Then this is the gist for you. Read on!

First, copy the following lines into a textfile, and edit them as needed. Then paste them into your command line and hit enter:

export USER_AGENT="Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.20.25 (KHTML, like Gecko) Version/5.0.4 Safari/533.20.27"
export DOMAIN_NAME_TO_SAVE="www.example.com"
export SPECIFIC_HOSTNAMES_TO_INCLUDE="example1.com,example2.com,images.example2.com"
export FILES_AND_PATHS_TO_EXCLUDE="/path/to/ignore"
export WARC_NAME="example.com-20130810-panicgrab"