Unofficial AKS Cheat Sheet
Official AKS FAQ is here
Unofficial AKS Cheat Sheet
Official AKS FAQ is here
| //AZ CLI query resources | |
| https://techcommunity.microsoft.com/t5/itops-talk-blog/how-to-query-azure-resources-using-the-azure-cli/ba-p/360147 | |
| Azure CLI/PowerShell commands | |
| //LOGIN & SUBSCRIPTION | |
| //to login using service principal | |
| az login --service-principal -u {appid} -p {password} --tenant {tenant} |
| { | |
| "id":"https://schema.management.azure.com/schemas/2018-05-01/policyDefinition.json#", | |
| "$schema":"http://json-schema.org/draft-04/schema#", | |
| "title":"Policy Definition", | |
| "description":"This schema defines Azure resource policy definition, please see https://azure.microsoft.com/en-us/documentation/articles/resource-manager-policy/ for more details.", | |
| "type":"object", | |
| "properties":{ | |
| "if":{ | |
| "oneOf":[ | |
| { |
| ############################################################################################ | |
| # REACTIVE TABLE DEMO WITH FASTHTML AND DATASTAR | |
| # | |
| # This example demonstrates: | |
| # 1. Building a reactive data table with real-time filtering and pagination | |
| # 2. Using Datastar for reactive UI updates without page refreshes | |
| # 3. Implementing DaisyUI and TailwindCSS for modern styling | |
| # 4. Handling user interactions with side effects (selection, filtering, pagination) | |
| ############################################################################################ |
| import requests | |
| from bs4 import BeautifulSoup | |
| def get_table_from_slickcharts(url: str) -> List[Dict[str, Union[str, float]]]: | |
| # parse table for symbols from slickcharts | |
| headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'} | |
| response = requests.get(url, headers=headers) | |
| data = [] |
| import json | |
| print('Loading function') | |
| def lambda_handler(event, context): | |
| print('------------------------') | |
| print(event) | |
| #1. Iterate over each record | |
| try: | |
| for record in event['Records']: |
| IAM Policy | |
| --- | |
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": [ | |
| "rds-db:connect" | |
| ], |
| # The NYC Taxis Dataset - https://www1.nyc.gov/site/tlc/about/tlc-trip-record-data.page | |
| pip install parquet-cli | |
| parq data/yellow_tripdata_2022-01.parquet | |
| parq data/yellow_tripdata_2022-01.parquet --schema | |
| parq data/yellow_tripdata_2022-01.parquet --head 10 |