Skip to content

Instantly share code, notes, and snippets.

Ali Robertson alirobe

Block or report user

Report or block alirobe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
alirobe / webhook_poc.csx
Created Jan 22, 2019
SharePoint Webhook Queue Grabber for Azure Functions API v2
View webhook_poc.csx
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using System.Collections.Generic;
alirobe / PostToUrlAsJson.cs
Last active Dec 18, 2019
Umbraco Forms Workflow - POST to URL as JSON (with optional Bearer Access Token). Just place this file anywhere in your Umbraco+Forms project, and the dependency injection will pick it up. This will allow you to connect to Microsoft Flow or Zapier or any integration web service, from which you can send to Salesforce/Dynamics/etc.
View PostToUrlAsJson.cs
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Dynamic;
using System.Net;
using System.Text.RegularExpressions;
using Umbraco.Core.Logging;
using Umbraco.Forms.Core;
using Umbraco.Forms.Core.Attributes;
alirobe / SP2013-video-cewp-ios-restrictions.txt.html
Last active Jun 21, 2018
This is an iOS compatible method of embedding a video from SharePoint, if blob storage is not enabled.
View SP2013-video-cewp-ios-restrictions.txt.html
<video controls="true" style="min-height:360px;width:100%;">
<source src="/PublishingImages/your-video.mp4">
Sorry, your browser does not support playback of this video.
if (/iPhone|iPad|iPod/i.test(navigator.userAgent) ||'video-ios-test') != -1) {
alirobe / dotVscodeDir-extensions.json
Created May 17, 2018
Productive React & TypeScript Settings
View dotVscodeDir-extensions.json
"recommendations": [
alirobe / reduceCrmv9Spacing.js
Last active Apr 25, 2019
Reduce Dynamics 365 v9 Field Spacing
View reduceCrmv9Spacing.js
if(!window.parent.document.querySelector('style#v9removepadding')) {
var style = window.parent.document.createElement('style'); = "v9removepadding";
style.innerText = ".acwallEmailView .emailexpandedaccordion { margin:0; width:100% } td { padding: 4px 1px 1px 16px !important; min-height: 26px; }";
alirobe / setupWindowsServer2016.ps1
Created Sep 15, 2017
View setupWindowsServer2016.ps1
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <>
# Modified by: alirobe <> based on my personal preferences.
# Version: 2.6.1, 2017-08-02
# Primary Author Source:
# Tweaked Source:
# Tweak difference:
# @alirobe's version is a subset focused on safely disabling telemetry, 'smart' features, and 3rd party bloat ...
alirobe / MyContentFinder.cs
Created Apr 5, 2017
Umbraco "Legacy URL" IContentFinder
View MyContentFinder.cs
using Umbraco.Core;
using Umbraco.Core.Services;
using Umbraco.Web;
using Umbraco.Web.Routing;
using umbraco;
using System.Linq;
namespace MyUmbraco
alirobe / Load-CSOMProperties.psm1
Created Jul 22, 2016 — forked from glapointe/Load-CSOMProperties.ps1
Utility PowerShell function that facilitates the loading of specific properties of a Microsoft.SharePoint.Client.ClientObject object or Microsoft.SharePoint.Client.ClientObjectCollection object.
View Load-CSOMProperties.psm1
Facilitates the loading of specific properties of a Microsoft.SharePoint.Client.ClientObject object or Microsoft.SharePoint.Client.ClientObjectCollection object.
Replicates what you would do with a lambda expression in C#.
For example, "ctx.Load(list, l => list.Title, l => list.Id)" becomes
"Load-CSOMProperties -object $list -propertyNames @('Title', 'Id')".
Load-CSOMProperties -parentObject $web -collectionObject $web.Fields -propertyNames @("InternalName", "Id") -parentPropertyName "Fields" -executeQuery
$web.Fields | select InternalName, Id
View gist:c2e841d0a8e7a1e83542eeb5dca20f52
Verifying that +alirobe is my blockchain ID.
alirobe /
Last active May 17, 2016
simple cron job that downloads weather forecasts from australian bureau of meteorology
# This script downloads weather forecasts from BOM
# Please ensure you comply with their usage terms and copyright...
# & to keep up with changes to this API
# - follow BOM here:
# - star and fork this gist.
# New South Wales and ACT
curl > NSW-ACT.xml
# Victoria
curl > VIC.xml
You can’t perform that action at this time.