This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Navigate to the Directory you want your Project to be in | |
2. install -g express-generator | |
3. this will install Express Generator Globally on your system if it is not already installed | |
4. express projectNameHere | |
5. this creates a bunch of folders and files for you and will give you the scaffolding you need for your project | |
its install will include packages that may not be installed on your system and not in your packages.json file so | |
6. npm install | |
7. thats it. if you run npm start it will spin up your site | |
8. you can start to use and customize the app.js file typically i will switch the view engine to use ejs over jade | |
9. locate the line in app.js and change it from jade to ejs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Calls to graph Api from Postman for Demos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Understanding the Graph Metadata Model | |
https://graph.microsoft.com/beta/$metadata | |
#Get Information about Users | |
https://graph.microsoft.com/v1.0/users/[email protected] | |
#Now try it with Beta | |
https://graph.microsoft.com/beta/users/[email protected] | |
https://graph.microsoft.com/beta/users/[email protected] | |
#Now try it and pull only certain properties | |
https://graph.microsoft.com/beta/users/[email protected]?$select=displayName,aboutMe,skills |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Docker | |
docker-machine ls (this list all the machine that you have locally) | |
docker-machine start [machine name] | |
docker-machine stop [machine name] | |
docker-machine env [machine name] | |
docker-machine ip [machine name] | |
docker-machine status [machine name] | |
docker ps (this list all containers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
web: | |
image: "fabianwilliams/fabsevalswebapi" | |
build: . | |
ports: | |
- "8000:80" | |
depends_on: | |
- db | |
db: |
OlderNewer