Skip to content

Instantly share code, notes, and snippets.

View slavivanov's full-sized avatar
🌍
Here and there

Slav Ivanov slavivanov

🌍
Here and there
View GitHub Profile
@senthilmurukang
senthilmurukang / stash-copy.sh
Last active May 26, 2022 21:15
shell script to copy stash from one folder to another. Example usage: ./stash-copy.sh /path/to/git/old/folder /path/to/git/new/folder
src=$1
dest=$2
current_directory=$(pwd)
cd $src
stashes=$(git stash list)
IFS=$'\n'
stash_messages=()
for stash in $stashes; do
@chrisjhoughton
chrisjhoughton / README.md
Last active May 19, 2023 04:36
Notify tray workflows "webhook style" from Salesforce using Apex triggers.

Salesforce Apex trigger notifications for tray.io

Salesforce's Apex triggers allow you to trigger tray workflows in real-time, based on events that occur in Salesforce. Events include things like:

  • New lead creations
  • Opportunity updates, such as the status moving from "open" to "closed"

Salesforce doesn't support webhooks out of the box, so we'll need to add some Apex code to your Salesforce account to notify tray at the right time.

@dangerouse
dangerouse / auth-proxy.html
Last active August 9, 2018 11:06
CloudSponge HTML/JS Proxy Endopoint
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>OAuth Proxy Page</title>
<!-- Including the CloudSponge proxy script here to redirect to the CloudSponge server -->
<script src="auth-proxy.js"></script>
</head>
<body>
<p>Thank you for completing the OAuth flow.</p>