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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<security> | |
<requestFiltering> | |
<requestLimits maxQueryString="3000" /> | |
</requestFiltering> | |
</security> | |
</system.webServer> | |
</configuration> |
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/bash | |
for i in `ps -ax | grep httpd | awk '{print $1}'`; do kill -9 $i; done; |
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
<VirtualHost myhost:80> | |
ServerName myhost | |
DocumentRoot /path/to/myapp/public | |
ProxyPass / http://myapp:8080/ | |
ProxyPassReverse / http://myapp:8080/ | |
</VirtualHost> |
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
stream { | |
upstream mysql_read { | |
server read1.example.com:3306 weight=5; | |
server read2.example.com:3306; | |
server 10.10.12.34:3306 backup; | |
} | |
server { | |
listen 3306; | |
proxy_pass mysql_read; | |
} |
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
upstream backend { | |
server 10.10.12.45:80 weight=1; | |
server app.example.com:80 weight=2; | |
} | |
server { | |
location / { | |
proxy_pass http://backend; | |
} | |
} |
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
server { | |
listen myhost:80; | |
server_name myhost; | |
location / { | |
root /path/to/myapp/public; | |
proxy_set_header X-Forwarded-Host $host:$server_port; | |
proxy_set_header X-Forwarded-Server $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_pass http://myapp:8080; | |
} |
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
Configuration SQLInstall | |
{ | |
param ( | |
[Parameter(Mandatory=$true)] | |
[ValidateNotNullOrEmpty()] | |
[String] | |
$PackagePath, | |
[Parameter(Mandatory=$true)] | |
[ValidateNotNullOrEmpty()] |
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
#$configData = @{ | |
@{ | |
AllNodes = @( | |
@{ | |
NodeName = "*" | |
PSDscAllowPlainTextPassword = $true | |
}, | |
@{ | |
NodeName = "fabfiberserver" |
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
USE master | |
GO | |
PRINT β*******************************************************************************************β | |
PRINT β*******************************************************************************************β | |
PRINT β<SQL Server Instance Name>β | |
SELECT @@SERVERNAME | |
GO | |
PRINT β*******************************************************************************************β | |
PRINT β*******************************************************************************************β | |
PRINT β<SQL Server Version, Edition and Build>β |
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
ALTER DATABASE mydb SET SINGLE_USER WITH ROLLBACK IMMEDIATE; | |
GO | |
ALTER DATABASE mydb SET MULTI_USER WITH ROLLBACK IMMEDIATE; | |
GO | |
ALTER DATABASE mydb SET OFFLINE WITH ROLLBACK IMMEDIATE | |
GO | |
ALTER DATABASE mydb SET ONLINE WITH ROLLBACK IMMEDIATE | |
GO |