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
@fabianwilliams-zz
fabianwilliams-zz / createadaptivecardforresulttype.json
Created February 27, 2021 17:07
Graph Connector: Create Connection, Schema, and Index for our Demo
{
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": 1,
import tweepy
import time
import datetime
import requests
import uuid
import pymongo
from pymongo import MongoClient
def limit_handler(cursor):
# Login to Azure
az login
# This will also give you a list of your current subscriptions
# To get an organized list of subscriptions in a tabular format
az account list --output table
# If you are not set to the default Subscription you want to use. Issue this command
# Use az account set with the subscription ID or name you want to switch to
az account set --subscription "The Name of the Subcription Here"
@fabianwilliams-zz
fabianwilliams-zz / iterm2-solarized.md
Created April 27, 2018 00:33 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@fabianwilliams-zz
fabianwilliams-zz / Create Fabian SpekerEvals Docker WebAPI
Created July 6, 2017 14:34
This Docker Compose file will pull down my image from Dockerhub and create you the WebAPI backed by MSSQL Linux
version: "3"
services:
web:
image: "fabianwilliams/fabsevalswebapi"
build: .
ports:
- "8000:80"
depends_on:
- db
db:
@fabianwilliams-zz
fabianwilliams-zz / FabsDockerExperience
Last active July 14, 2017 19:55
Working with Docker -- Just Tips and Tricks Stuff
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)
#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
@fabianwilliams-zz
fabianwilliams-zz / ITDevCon-Fabian-GraphAPI
Created September 20, 2016 01:02
For my session on Office Graph API & Delve, Unleash the Power
//Calls to graph Api from Postman for Demos
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
// Save the below in a .ps1 file and then execute on the offending computer
Remove-Item "$($env:APPDATA)\Microsoft\Web Server Extensions\Cache\*" -recurse -force
Remove-Item "$($env:USERPROFILE)\AppData\Local\Microsoft\WebsiteCache\*" -recurse -force