This file contains 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
events {} | |
http { | |
include /etc/nginx/mime.types; | |
server { | |
listen 80; | |
server_name localhost; | |
root /usr/share/nginx/html; | |
index index.html; | |
location / { | |
try_files $uri $uri/ /index.html; |
This file contains 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 mcr.microsoft.com/dotnet/aspnet:6.0 AS base | |
WORKDIR /app | |
EXPOSE 80 | |
EXPOSE 443 | |
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build | |
WORKDIR /src | |
COPY ["bank.csproj", ""] | |
RUN dotnet restore "bank.csproj" |
This file contains 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
string videoUrl = $"http://amssamples.streaming.mediaservices.windows.net/69fbaeba-8e92-4740-aedc-ce09ae945073/AzurePromo.ism/{sometype}/{somemore}"; |
This file contains 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
ng serve --host 0.0.0.0 --port 4200 --disable-host-check | |
ng build --base-href "/subfolder" --deploy-url "/subfolder/" |
This file contains 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
p { | |
border:10px solid green; | |
} | |
::ng-deep app-box { | |
p { | |
&:has(+app-table) { | |
border: 10px solid red; | |
} | |
&:has(+ table) { |
This file contains 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
private scanner(data: any, select: string, d = null) { | |
if(data && select) { | |
const pointer = select.split('.'); | |
while(data && pointer.length) { | |
const x = pointer.shift(); | |
if(x) { | |
data = data[x]; | |
} | |
} | |
return data; |
This file contains 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
if not exists (SELECT * FROM sysobjects INNER JOIN syscolumns ON | |
sysobjects.id = syscolumns.id | |
WHERE sysobjects.name = N'Test' AND syscolumns.name = N'xxx') | |
ALTER TABLE [dbo].[Test] ADD xxx NVARCHAR(MAX) | |
ALTER TABLE [dbo].[Test] | |
DROP COLUMN xxx; | |
---------------------- |
This file contains 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"> | |
<title>MsgnWeb</title> | |
<base href="/"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="icon" type="image/x-icon" href="favicon.ico"> | |
<style>body{padding:0;margin:0;background-color:#fff}</style> | |
<!-- <link rel="stylesheet" href="styles.53fc3936202f4d20.css" media="print" onload="this.media='all'"> --> |
This file contains 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
https://github.com/angular/angular/issues/37631 | |
https://dev-academy.com/content-security-policy-in-angular/ | |
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src | |
<httpProtocol> | |
<customHeaders> | |
<add name="X-XSS-Protection" value="0" /> | |
<add name="X-Content-Type-Options" value="nosniff" /> |
This file contains 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
``` | |
<httpProtocol> | |
<customHeaders> | |
<remove name="X-Powered-By" /> | |
<!-- SECURITY HEADERS - https://securityheaders.io/? --> | |
<!-- Protects against Clickjacking attacks. ref.: http://stackoverflow.com/a/22105445/1233379 --> | |
<add name="X-Frame-Options" value="SAMEORIGIN" /> | |
<!-- Protects against Clickjacking attacks. ref.: https://www.owasp.org/index.php/HTTP_Strict_Transport_Security_Cheat_Sheet --> | |
<add name="Strict-Transport-Security" value="max-age=31536000; includeSubDomains"/> |
NewerOlder