Skip to content

Instantly share code, notes, and snippets.

/*
* Decompiled with CFR 0.150.
*
* Could not load the following classes:
* kotlin.Metadata
* kotlin.ResultKt
* kotlin.Unit
* kotlin.coroutines.Continuation
* kotlin.coroutines.intrinsics.IntrinsicsKt
* kotlin.jvm.functions.Function1
@danwatt
danwatt / SalesforceApiWrapper.cfc
Created February 14, 2012 16:21
Wrapper for the SalesForce REST API, for ColdFusion 9
/**
Copyright (C) 2012 Daniel Watt
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions
of the Software.
@danwatt
danwatt / ColdFusionUuEncryption.java
Created January 31, 2012 17:36
Decrypt Coldfusion UUEncode
import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
import javax.mail.internet.MimeUtility;
import org.apache.commons.io.IOUtils;
public class ColdFusionUuEncryption {
@danwatt
danwatt / ScriptComponentDecompiled.java
Created August 15, 2011 16:20
ScriptComponentDecompiled
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: C:\webdev\tomcat\code\lampo.cfmain\webapps\ROOT\scriptComponent.cfc
import coldfusion.runtime.*;
import java.util.Map;
import javax.servlet.jsp.JspContext;
public final class cfscriptComponent2ecfc1131169586 extends CFComponent {
@danwatt
danwatt / MarkupComponentDecompiled.java
Created August 15, 2011 16:18
MarkupComponentDecompiled.java
import coldfusion.runtime.*;
import coldfusion.tagext.GenericTag;
import coldfusion.tagext.lang.ProcessingDirectiveTag;
import java.util.Map;
import javax.servlet.jsp.JspContext;
import javax.servlet.jsp.tagext.TagSupport;
public final class cfmarkupComponent2ecfc1581765262 extends CFComponent {
public cfmarkupComponent2ecfc1581765262() {
public class AmazonSqsSender
{
private String getCurrentDate() {
return DateTime.now().formatGmt('yyyy-MM-dd\'T\'HH:mm:ss.SSS\'Z\'');
}
public void sendMessage(String message) {
//AmazonAws__c is a custom setting object that stores our keys, an Amazon Host, and a queue name
//You can just put your keys, host and queue below as strings