- This sample is based on "Tutorial: Deploy a Dapr application to Azure Container Apps with an Azure Resource Manager or Bicep template"
- In addition to the tutorial, added virtual network integration and private endpoints
graph TB
subgraph VNet
''' | |
This is an example of how to send data to Team's webhooks in Python with the | |
requests module. | |
Documentation for Team's Incoming Webhooks: | |
https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/what-are-webhooks-and-connectors | |
Card playground: | |
https://messagecardplayground.azurewebsites.net/ | |
''' | |
import json |
### Preseed for Ubuntu 18.04 | |
# Derived from: https://help.ubuntu.com/lts/installation-guide/example-preseed.txt | |
### Usage | |
# We recommend to use the build-iso.sh script to build an image with embedded | |
# preseed and other required files. In that case the preseed file gets loaded | |
# automatically and all additional files are available to the installer. | |
### Unattended Installation | |
d-i auto-install/enable boolean true |
import errno | |
import logging | |
import os | |
import re | |
import subprocess | |
import time | |
from datetime import datetime | |
from pathlib import Path | |
from typing import List |
# wget https://gist.github.com/auwsom/fbeb8bfd36af91bb482529ee499f1058/raw -O bashsetup_docker ; bash !$ | |
set +o history && sleep 1 | |
sed -i /^'alias d'/d ~/.bashrc; sed -i /^'function d'/d ~/.bashrc ## remove old | |
source ~/.bashrc ; exec bash ## have to restart shell to enter the bindings without recursion | |
#echo "HISTIGNORE=''" >>~/.bashrc | |
# sudo cp /usr/share/zoneinfo/US/Pacific /etc/localtime # cant set, read only | |
echo "alias d='docker'">>~/.bashrc | |
echo "alias dcm='docker commit'">>~/.bashrc # CONTAINER IMAGE_REPO:TAG <- have to specify or creates new image | |
echo "alias del='docker exec -it \$(docker ps -q -l) bash'">>~/.bashrc | |
echo "alias di='docker images'">>~/.bashrc |
gifify() { | |
if [[ -n "$1" ]]; then | |
if [[ $2 == '--good' ]]; then | |
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
rm out-static*.png | |
else | |
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
fi | |
else |
" ============================================================================= | |
" Miller Medeiros .vimrc file | |
" ----------------------------------------------------------------------------- | |
" heavily inspired by: @factorylabs, @scrooloose, @nvie, @gf3, @bit-theory, ... | |
" ============================================================================= | |
" ----------------------------------------------------------------------------- | |
" BEHAVIOR |
trigger: | |
- master | |
pool: | |
vmImage: 'ubuntu-latest' | |
variables: | |
- group: kvintegratedvargroup | |
steps: |
graph TB
subgraph VNet
--------------------------------------------------------------------------------------------- | |
-- LGS_script_template.lua | |
--------------------------------------------------------------------------------------------- | |
-- Version: 2019-04-19 | |
-- Author: Egor Skriptunoff | |
-- | |
-- | |
-- This is a template for "Logitech Gaming Software" script file. | |
-- Four useful features are implemented here: | |
-- |