Skip to content

Instantly share code, notes, and snippets.

View ChrisCinelli's full-sized avatar

Chris Cinelli ChrisCinelli

  • Close5
  • San Francisco, CA, United States
View GitHub Profile
@ChrisCinelli
ChrisCinelli / zendesk_SSO.php
Last active December 13, 2015 21:58
Zendesk PHP integration snippet for Single Sign On (SSO)
/*
* Remote authentication snippet in PHP fro Zendesk
* See: http://www.zendesk.com/support/api/remote-authentication
*/
/* This is the token that you can find or recreate on https://bloomboard.zendesk.com/agent/#/admin/security */
$token = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
/* Insert your account prefix here. Ex: yoursite.zendesk.com */
$urlPrefix = "yoursite";
/*
* Remote authentication snippet in PHP fro Zendesk
* See: http://www.zendesk.com/support/api/remote-authentication
*/
/* This is the token that you can find or recreate on https://bloomboard.zendesk.com/agent/#/admin/security */
$token = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
/* Insert your account prefix here. Ex: yoursite.zendesk.com */
$urlPrefix = "yoursite";
@ChrisCinelli
ChrisCinelli / spreadsheetsgeocoder.xml
Created December 1, 2012 08:27
Removing the 99 limit in spreadsheetsgeocoder.xml
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Spreadsheets Geocoder"
description="Geocoding is the process of converting an address to a coordinate pair, and its necessary to plot data on a map. This gadget helps you geocode addresses from your spreadsheet, and gives you an output thats easy to copy-and-paste back into your sheet."
author="Pamela Fox"
author_affiliation="Google Inc."
author_email="pamela.fox+coolgadget@gmail.com"
screenshot="http://pamela.fox.googlepages.com/screenshot_spreadsheetsgeocodergadge.jpg"
thumbnail="http://pamela.fox.googlepages.com/thumbnail_spreadsheetsgeocodergadget.jpg"
width="600" height="600">
@ChrisCinelli
ChrisCinelli / copy-s3-bucket.rb
Created November 3, 2012 19:56 — forked from zefer/copy-s3-bucket.rb
Copy contents of an S3 bucket to a another bucket using an EC2 instance and a simple Ruby script. Useful for transferring large amounts of data and will work across geographic regions.
require 'rubygems'
require 'right_aws'
aws_access_key_id = 'your-access-key'
aws_secret_access_key = 'your-secret-key'
target_bucket = 'your-source-bucket'
destination_bucket = 'your-destination-bucket'
s3 = RightAws::S3Interface.new(aws_access_key_id, aws_secret_access_key)
@ChrisCinelli
ChrisCinelli / gist:2051841
Created March 16, 2012 18:57
Logging of Javascript error on the Frontend to the Backend
/* ==========================================================
*
* Log on a remote server most of the errors in the browser
*
* @author Chris Cinelli
*
* Depends on:
* stacktrace.js - https://github.com/eriwen/javascript-stacktrace
* jsonStringify.js - http://www.thomasfrank.se/json_stringify_revisited.html
*