Skip to content

Instantly share code, notes, and snippets.

@brendanc
brendanc / litmus-template-email.html
Created October 11, 2023 00:55
Litmus template email
<!DOCTYPE html>
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
{{Standard Meta and Head}}
{{Standard Litmus Brand CSS Styles}}
<!--mobile styles-->
{{Standard Mobile CSS Styles}}
@brendanc
brendanc / aie-sample-email-001.html
Created October 10, 2023 18:23
aie-sample-email-001.html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml">
<head><meta name="robots" content="noindex, nofollow"/><meta name="referrer" content="no-referrer"/>
<title> Bloomingdale's </title>
<!--[if !mso]><!-- -->
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<!--<![endif]-->
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="width=device-width, initial-scale=1" name="viewport">
@brendanc
brendanc / redirect.html
Last active January 17, 2018 14:07
redirect to random image
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function redirect() {
var random = Math.floor(Math.random() * Math.floor(5)) + 1; // random number between 1 and 5
var number = random*100; // just make this bigger for this example only so placeholder image is reasonable
var image = "http://via.placeholder.com/" + number + ".png";
window.location.replace(image);
}
### Keybase proof
I hereby claim:
* I am brendanc on github.
* I am brendanc (https://keybase.io/brendanc) on keybase.
* I have a public key whose fingerprint is 264C CA7B 7A13 FE2F 937D 668F 672C 019D 5CD4 5729
To claim this, I am signing this object:
import requests
from bs4 import BeautifulSoup
import smtplib
import time
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
ACCOUNT_KEY = 'backend'
USERNAME = '[email protected]'
PASSWORD = '***'
@brendanc
brendanc / CreateEmailTestWithSingleApplicaton.sh
Created February 4, 2015 16:55
Create an email test for a single email app int the Litmus reseller api via curl
#!/bin/bash
sed 's/litmusapp/iphone5s/g' 'SingleEmailTestingApp.json' > temp-test.json;curl -i -u username:password -X POST https://previews-api.ltimus.com/api/v1/EmailTests -H "Accept: application/json" -H "Content-Type: application/json" --data @temp-test.json
require 'httparty'
class LitmusTest
include HTTParty
base_uri('https://api.litmus.com/v2')
basic_auth('<YOUR API KEY>', 'x')
headers({'Content-Type' => 'application/json'})
def self.create(subject, body)
post('/emails', :body => {:email => {:name => "#{subject} @ #{Time.now.to_s(:short)}", :subject => subject, :body => body, :client_ids => self.client_ids}}.to_json)
OOOOOOOOOOO
OOOOOOOOOOOOOOOOOOO
OOOOOO OOOOOOOOO OOOOOO
OOOOOO OOOOO OOOOOO
OOOOOOOO # OOOOO # OOOOOOOO
OOOOOOOOOO OOOOOOO OOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOO OOOOOOOOOOOOOOOOOOOOOOOOO OOOO
OOOO OOOOOOOOOOOOOOOOOOOOOOO OOOO
/*
As of version 1.1.2, Propane will load and execute the contents of
~/Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
@brendanc
brendanc / litmusapi-create-get.pl
Last active December 19, 2015 07:59
Litmus api example with a create followed by a get.
#!/usr/bin/perl
use 5.006;
use SOAP::Lite 'trace', 'debug' ;
# Sample code to create a new email test using Litmus' Reseller Api
# This sample uses SOAP:Lite, available at: http://www.soaplite.com/
$api_key = "api-key";