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
""" | |
A Windows script written in Python 3.6+ to control brightness of connected monitors. | |
Potentially this works only with Display Port connected monitors. | |
Other type of cables could be supported as long as they use the DDC/CI protocol. | |
Author: Lorenzo Montanari | |
""" | |
from ctypes import windll, byref, Structure, WinError, POINTER, WINFUNCTYPE | |
from ctypes.wintypes import BOOL, HMONITOR, HDC, RECT, LPARAM, DWORD, BYTE, WCHAR, HANDLE |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="RemoveDotHtml" enabled="true" stopProcessing="true"> | |
<match url="(.*)\.html" /> | |
<action type="Redirect" url="{R:1}" /> | |
</rule> | |
<rule name="AddDotHtml" enabled="true"> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="Redirect to https" enabled="true" stopProcessing="true"> | |
<match url="(.*)" /> | |
<conditions logicalGrouping="MatchAll" trackAllCaptures="false"> | |
<add input="{HTTPS}" pattern="off" /> | |
<add input="{HTTP_HOST}" pattern="localhost" negate="true" /> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.webServer> | |
<staticContent> | |
<remove fileExtension=".json"/> | |
<mimeMap fileExtension=".json" mimeType="application/json"/> | |
</staticContent> | |
</system.webServer> | |
</configuration> |