Skip to content

Instantly share code, notes, and snippets.

View fabianwilliams-zz's full-sized avatar
🎯
Focusing

Fabian Williams fabianwilliams-zz

🎯
Focusing
View GitHub Profile
//For Facebook
Strategy.prototype._convertProfileFields = function(profileFields) {
var map = {
'id': 'id',
'username': 'username',
'displayName': 'name',
'name': ['last_name', 'first_name', 'middle_name'],
'gender': 'gender',
'profileUrl': 'link',
'emails': 'email',
Steps to Accomplish Xamarin.Forms with Azure
Steps with Explanatory Notes
Section 1 - Create or Attach to a Windows Azure Mobile Service URI
1. Log into https://manage.windowsazure.com
2. Click on the option to create an Azure Mobile Service (WAMS) if the one you want to use does not exist otherwise just click on the one you will be using in this process. By default you get a ToDo Items Entity and Controller
3. Optional – Adjust your Data Objects(Entitys Add, Edit, etc)
4. Optional – Adjust your Controllers (CRUD-Q Capabilities)
5. Publish your WAMS URI back to Azure
@fabianwilliams-zz
fabianwilliams-zz / JailBreakFromWAMS
Created June 26, 2015 23:18
WAMS datastructure included
MongoDB shell version: 3.0.4
connecting to: ds034208.mongolab.com:34208/FabianMongoLab
> db.JailBreak.find().pretty()
{
"_id" : ObjectId("558ddb8791bb5a9e249a55de"),
"Version" : null,
"CreatedAt" : [
NumberLong("635709569354081905"),
0
],
@fabianwilliams-zz
fabianwilliams-zz / golf_registerSPOPrincipaltoSP2013
Created October 10, 2014 15:15
SharePoint Hybrid Scripts for Identity Management
#you will need to set up a Trusted Authority in your ON Premises SP2013
#below takes SPO Principal Object and registers it with SP On Prem Root Web
$spoappprincipalID = (Get-MsolServicePrincipal -ServicePrincipalName $spoappid).ObjectID
$sponameidentifier = "$spoappprincipalID@$spocontextID"
$appPrincipal = Register-SPAppPrincipal -site $site.rootweb -nameIdentifier $sponameidentifier -displayName "SharePoint Online"
#you can verify this worked by running the POSH below
Get-SPAppPrincipal -site $site.rootweb -NameIdentifier $sponameidentifier | format-table -autosize -wrap