20250210

香港渣打馬拉松2025 全馬篇 - 破四之旅 (sub4)

 #sub4

#香港渣打馬拉松2025

#全馬破四系列

#不怕慢只怕停

#男兒當自強


(2024年 全馬 : 03:59:59) 經過上年我的破四回憶錄,當日最懊惱的事情就是於最後一公里跑不動停下來而步行上馬師道天穚。這個經歷整整一年於我腦海之內揮之不去。


2024年是充實的一年. 我於機緣之下7月至1月這半年之間我跟了一位出名教練去正式學習跑步。 


這半年的訓練強度甚有難度,但我不知不覺地跑快了半點, 連自己的心率都下調了. 


20241118

nginx security header - CSP


        # Add Security Headers

        add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;

        add_header X-Content-Type-Options nosniff always;

        add_header X-Frame-Options "SAMEORIGIN" always;

        add_header X-XSS-Protection "1; mode=block" always;

        add_header Set-Cookie "Path=/; Secure; HttpOnly; SameSite=Lax" always;


add_header Referrer-Policy "no-referrer-when-downgrade" always;


add_header Permissions-Policy "geolocation=(self), microphone=()";


add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';";

        # end


PHP.ini

 expose_php = Off

20240523

【2024 最新方法】Win 11 (23H2 & 24H2) 免綁定微軟帳號!

 Shift + F10

oobe\bypassnro


現時,大部分玩家在安裝 Windows 11,若想跳過互聯網連接及 Microsoft 帳戶登陸,通常會使用 bypassnro.cmd 腳本。然而,當 Microsoft 封鎖此方法後,用戶其實仍可透過修改註冊表達成相同目的:
1. 在安裝過程中按下 Shift + F10,然後輸入 regedit 開啟註冊表編輯器。
2. 尋找 `HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\OOBE`。
3. 將 **HideOnlineAccountScreens** 的值更改為 `1`。
此方法適用於 Windows 11 Home 及 Pro 版本。
根據 Microsoft 官方文件的解釋,HideOnlineAccountScreens主要用於企業的無人值守安裝,以跳過用戶登錄過程。因此,用戶可以將此技巧收藏以備不時之需。

 
Shift + F10
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE /v BypassNRO /t REG_DWORD /d 1 /f

shutdown /r /t 0



Standard preset security policy & Strict preset security policy

 


M365 Exchange online:


Connect-ExchangeOnline -UserPrincipalName <UPN> [-ExchangeEnvironmentName <Value>] [-ShowBanner:$false] [-DelegatedOrganization <String>] [-SkipLoadingFormatData]


# Connect-ExchangeOnline -UserPrincipalName xxx@xxx.onmicrosoft.com



View quarantine policies in PowerShell

# Get-QuarantinePolicy | Format-Table Name

# Get-QuarantinePolicy -QuarantinePolicyType GlobalQuarantinePolicy

# Get-QuarantinePolicy -QuarantinePolicyType QuarantinePolicy


# Get-QuarantinePolicy -Identity DefaultFullAccessPolicy

# Get-QuarantinePolicy -Identity AdminOnlyAccessPolicy

# Get-QuarantinePolicy -Identity DefaultFullAccessWithNotificationPolicy



<Standard preset security policy:>

# Write-Output -InputObject ("`r`n"*3),"Standard anti-malware policy",("-"*79);Get-MalwareFilterPolicy | Where-Object -Property RecommendedPolicyType -eq -Value "Standard"; Write-Output -InputObject ("`r`n"*3),"Standard anti-spam policy",("-"*79);Get-HostedContentFilterPolicy | Where-Object -Property RecommendedPolicyType -eq -Value "Standard"; Write-Output -InputObject ("`r`n"*3),"Standard anti-phishing policy",("-"*79);Get-AntiPhishPolicy | Where-Object -Property RecommendedPolicyType -eq -Value "Standard"



<Strict preset security policy:>

Write-Output -InputObject ("`r`n"*3),"Strict anti-malware policy",("-"*79);Get-MalwareFilterPolicy | Where-Object -Property RecommendedPolicyType -eq -Value "Strict"; Write-Output -InputObject ("`r`n"*3),"Strict anti-spam policy",("-"*79);Get-HostedContentFilterPolicy | Where-Object -Property RecommendedPolicyType -eq -Value "Strict"; Write-Output -InputObject ("`r`n"*3),"Strict anti-phishing policy",("-"*79);Get-AntiPhishPolicy | Where-Object -Property RecommendedPolicyType -eq -Value "Strict"


Related Posts Plugin for WordPress, Blogger...