| description |
|---|
Implement a single task from TASKS.md using project constitution & minimal diff workflow (/implement-task) |
$ARGUMENTS
| 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 |
| Install-Module -Name MicrosoftTeams -Force | |
| Connect-MicrosoftTeams | |
| Get-Team -User <username> | |
| Get-TeamUser -GroupId <id> | ft User |
| 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') |
| 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 |
| DATA=From env file |
| fetch('/_api/site', {headers:{accept:'application/json'}}).then( x => x.json().then( y => console.log(y))) |
| -- 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 |
| { | |
| "domain": "sector_alarm", | |
| "name": "Sector Alarm", | |
| "documentation": "https://void.null", | |
| "dependencies": [], | |
| "codeowners": [], | |
| "requirements": [] | |
| } | |
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