Skip to content

Instantly share code, notes, and snippets.

View aloncarmel's full-sized avatar
🤘
❤️ Having fun!

Alon Carmel aloncarmel

🤘
❤️ Having fun!
View GitHub Profile
@aloncarmel
aloncarmel / package.json
Created April 20, 2016 13:11
An Amazon lambda nodejs code that runs and waits for API calls coming in from a segment webhook configured. This lets you sync segment identify calls to salesforce. Its ready for a call from salesforce to update segment.
{
"name": "segmenttosalesforce",
"private": true,
"version": "0.0.1",
"description": " sync data across services",
"keywords": [],
"dependencies": {
"aws-sdk": "^2.0.17",
"request": "^2.44.0",
"bcrypt": "^0.8.0",
@aloncarmel
aloncarmel / PBIgetEmbedToken.php
Last active July 23, 2020 17:02
Embed a PowerBi Report using PowerBi JS library with AccessToken and EmbedToken
<?php
function getAccessToken() {
$curl = curl_init();
$data = array(
'client_id' => 'XXXXX',
'client_secret' => 'XXXX',
'grant_type' => "password",
@aloncarmel
aloncarmel / CreateAirTableSyncedToAffinityList.md
Last active June 6, 2021 06:38
Creating an externally synced airtable base from affinity list

This is a small gist that allows you to share an org list from affinity to an airtable

Keeping airtable synced automatically. Below is an airtable structure that pulls via airtable script automation an affinity list, populates all the data throughout the list, populates the org data, people data and interlinks all records together directly via Affinity API. This can be adapted easily to populate Opprotunity and other objects from the affinity API. Feel free to share and contribute back.

Create a base that has the following tables with fields:

Main

Fields:

  1. 'Name' type of Single line text (should be default left side)
  2. 'entity_id' type of #number
  3. 'person_ids_json' type of Single line text