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
| #!/usr/bin/python # This is server.py file | |
| import socket # Import socket module | |
| s = socket.socket() # Create a socket object | |
| host = socket.gethostname() # Get local machine name | |
| print(host) | |
| port = 8085 # Reserve a port for your service. | |
| print('Server started!') | |
| print('Waiting for clients...') |
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
| if (-not $($args[0])) { | |
| Write-Host "The profile variable is null or empty." | |
| } | |
| $xml = Resolve-Path "../web.config"; | |
| $xdtPath = "../web." + $($args[0]) + ".config" | |
| $xdt = Resolve-Path $xdtPath; | |
| Add-Type -LiteralPath "../Microsoft.Web.XmlTransform.dll" |
OlderNewer