layout: page title: "Azure IoT" description: "Offers support for Azure IoT integration with Homeassistant." date: 2017-10-22 14:18 sidebar: true comments: false sharing: true footer: true logo: home-assistant.png
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
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | |
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/ | |
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/vscode.list' | |
rm -f packages.microsoft.gpg | |
sudo apt update | |
sudo apt install microsoft-edge-stable |
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
Install-Module -Name MicrosoftTeams -Force | |
Connect-MicrosoftTeams | |
Get-Team -User <username> | |
Get-TeamUser -GroupId <id> | ft User |
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
var url = "https://contoso.sharepoint.com/sites/classic/SiteAssets/test" | |
var context = SP.ClientContext.get_current() | |
var site = context.get_site() | |
var actions = site.get_userCustomActions(); | |
context.load(site) | |
context.load(actions) | |
context.executeQueryAsync( | |
function () { | |
var newAction = actions.add(); | |
newAction.set_description('abc123') |
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
const crypto = require('crypto'); | |
const request = require('request'); | |
const bufSecret = Buffer('OUTGOING-WEBHOOK-SECRET', "base64"); | |
const flowWebhook = 'MICROSOFT-FLOW-URL'; | |
module.exports = function (context, req) { | |
var auth = req.headers['authorization']; | |
// HMAC security validation |
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
DATA=From env file |
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
fetch('/_api/site', {headers:{accept:'application/json'}}).then( x => x.json().then( y => console.log(y))) |
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
-- Source: https://github.com/AmrEldib/cmder-powerline-prompt | |
--- promptValue is whether the displayed prompt is the full path or only the folder name | |
-- Use: | |
-- "full" for full path like C:\Windows\System32 | |
local promptValueFull = "full" | |
-- "folder" for folder name only like System32 | |
local promptValueFolder = "folder" | |
-- default is promptValueFull | |
local promptValue = promptValueFull |
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
{ | |
"domain": "sector_alarm", | |
"name": "Sector Alarm", | |
"documentation": "https://void.null", | |
"dependencies": [], | |
"codeowners": [], | |
"requirements": [] | |
} | |
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
## https://support.microsoft.com/en-us/help/971058/how-do-i-reset-windows-update-components | |
cleanmgr /sageset | |
cleanmgr /sagerun | |
$path = "c:\windows\SoftwareDistribution" | |
NewerOlder