Skip to content

Instantly share code, notes, and snippets.

@rwheaton
rwheaton / git_cheat_sheet.md
Created December 15, 2016 17:24
Git Cheat Sheet

Git Cheat Sheet

Commands

Getting Started

git init

or

git clone url

@rwheaton
rwheaton / salesforce.js
Last active April 4, 2019 15:33 — forked from mobyjames/salesforce.js
Squarespace Forms Integration for Salesforce
// add this salesforce.js file to your scripts dir after enabling developer mode
// this gets included via entries in the site.region file
Y.namespace('Template').Salesforce = Class.create({
/*
baseUrl
oid
sqsFormSubmit
*/
initialize: function (config) {
@rwheaton
rwheaton / keybase.md
Last active April 13, 2016 18:39
keybase.md

Keybase proof

I hereby claim:

  • I am rwheaton on github.
  • I am rtwheato (https://keybase.io/rtwheato) on keybase.
  • I have a public key ASB57GxUY894-3LeKisFtWE1xvfrlFzsksBy1VYe6PtrVAo

To claim this, I am signing this object:

@rwheaton
rwheaton / gist:2219584
Created March 27, 2012 19:38
example rightscript
#!/bin/env ruby
#
# Copyright (c) 2007-2011 RightScale, Inc, All Rights Reserved Worldwide.
#
# Contacts and configures an HAProxy server for user with a generic apache application
# LB_APPLISTENER_NAME -- specifies which HAProxy server pool to use
# LB_BACKEND_NAME -- A unique name for each back end e.g. (AMI_INSTANCE_ID)
# MAX_CONN_PER_SERVER -- Maximum number of connections per server
# HEALTH_CHECK_URI --
@rwheaton
rwheaton / test_swiftmailer.php
Last active September 28, 2015 00:18
swiftmailer test
<?
require_once '/Users/larry/hp/vendors/SwiftMailer/swift_required.php';
//require_once '/home/ryan/Documents/code/houseparty/houseparty/vendors/SwiftMailer/swift_required.php';
//Create the Transport
$transport = Swift_SmtpTransport::newInstance('XX.XX.XX.XX', 25);
//Create the Mailer using your created Transport
$mailer = Swift_Mailer::newInstance($transport);