Skip to content

Instantly share code, notes, and snippets.

@dtcMLOps
dtcMLOps / better_powershell.md
Created August 24, 2023 12:23 — forked from mh-firouzjah/better_powershell.md
how to add zsh-like theme and feature to windows powershell

Better PowerShell

Theme | History | KeyBinding

MyPowershell

in order to make windows powershell more comfortable and add a some theme and features like history binding, auto complete on keypress and so on, if you have used linux teminl wiht zsh for example, we are going to make powershell like that as much as we can.

What we will achieve

@dtcMLOps
dtcMLOps / power-automate-actions2.png
Last active July 17, 2024 19:15
Update 0365 Teams webhook in python to use Teams workflows (power automate flows)

Process

Follow the next steps to update O365 teams webhook connector to user workflows (power automate - flows).

This flow in power automate is going to be triggered by the webhook and post the message in the channel. The "attachments" field in the webhook is an array, so we need to parse the JSON data to get the content of the message. This will get the first attachment content.

  1. Create instant cloud flow
  2. Provide a name
  3. Select trigger: When a Teams webhook request is received and press create.
  4. Press the + New step button and select Add an action.
  5. Search for Post card in a chat or channel action.