This file contains hidden or 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
| # Force HTTPS using Azure's X-Forwarded-Proto header | |
| server { | |
| listen 80; | |
| # Redirect HTTP → HTTPS | |
| if ($http_x_forwarded_proto = "http") { | |
| return 301 https://$host$request_uri; | |
| } | |
| # Alias domains → primary domain (HTTPS) |
This file contains hidden or 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
| #!/bin/sh | |
| set -e | |
| # Substitute environment variables into nginx.conf | |
| envsubst '${PRIMARY_DOMAIN} ${ALIAS_DOMAINS}' \ | |
| < /etc/nginx/conf.d/nginx.conf.template \ | |
| > /etc/nginx/conf.d/default.conf | |
| nginx -g "daemon off;" |
This file contains hidden or 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
| FROM nginx:stable-alpine as production-stage | |
| COPY --from=build-stage /app/dist /usr/share/nginx/html | |
| # Copy template and entrypoint | |
| COPY nginx.conf.template /etc/nginx/conf.d/nginx.conf.template | |
| COPY entrypoint.sh /entrypoint.sh | |
| RUN chmod +x /entrypoint.sh |
This file contains hidden or 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
| # Force HTTPS using Azure's X-Forwarded-Proto header | |
| server { | |
| listen 80; | |
| # Redirect HTTP → HTTPS | |
| if ($http_x_forwarded_proto = "http") { | |
| return 301 https://$host$request_uri; | |
| } | |
| # Alias domains → primary domain (HTTPS) |
This file contains hidden or 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
| dotnet ef dbcontext scaffold "Server=localhost;Initial Catalog=Northwind;Trusted_Connection=True;MultipleActiveResultSets=true;Integrated Security = true;TrustServerCertificate=true;" Microsoft.EntityFrameworkCore.SqlServer --namespace Northwind.EntityModels --data-annotations |
This file contains hidden or 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
| # Changed Type1 is previous transformation name | |
| # FilteredDate is new column added | |
| # [Date] is name of column containing dates in text format | |
| = Table.AddColumn(#"Changed Type1", "FilteredDate", each try Value.Is(Date.From([Date]), type date) otherwise false ) |
This file contains hidden or 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
| # expression for date column in Derived Column Task | |
| TRIM(DateUpdatedstring) == "" ? NULL(DT_DATE) : (DT_DATE)DateUpdatedstring |
This file contains hidden or 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
| <style> | |
| @media screen { | |
| #printSection { | |
| display: none; | |
| } | |
| } | |
| @media print { | |
| body * { | |
| visibility: hidden; | |
| } |
This file contains hidden or 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
| # default SHA256 | |
| (Get-FileHash -Path filepath).Hash -eq "SHA256Hash" | |
| # MD5 Hash | |
| (Get-FileHash -Path filepath -Algorithm MD5).Hash -eq "MD5hash" | |
| # SHA512 Hash | |
| (Get-FileHash -Path filepath -Algorithm MD5).Hash -eq "SHA512hash" |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Table input</title> | |
| <style> | |
| table { | |
| width: 100%; |
NewerOlder