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
Username myusername | |
Domain mydomain | |
Proxy my_proxy_server.com:80 | |
NoProxy 127.0.0.*, 192.168.* | |
Listen 127.0.0.1:5865 | |
Gateway yes | |
SOCKS5Proxy 5866 |
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
#!/bin/sh | |
EXPECTED_NO_LINES=1 | |
i=0 | |
echo "exp lines: ${EXPECTED_NO_LINES}" | |
echo "lines: ${ACTUAL_NO_LINES}" | |
while [ $i -eq 0 ]; do | |
ACTUAL_NO_LINES=$(cat asdf3.log | wc -l) | |
if ! [[ $ACTUAL_NO_LINES -eq $EXPECTED_NO_LINES ]]; then | |
sed -n "${EXPECTED_NO_LINES},${ACTUAL_NO_LINES}p" asdf3.log | |
EXPECTED_NO_LINES=$ACTUAL_NO_LINES |
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 (!(Test-Path $CLIENT_ROOT\archive)) { | |
write-host "Creating archive folder $CLIENT_ROOT\archive" | |
New-Item -Path $CLIENT_ROOT\archive -ItemType Directory | |
} |
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
function Expand-ZIPFile($file, $destination) { | |
$shell = new-object -com shell.application | |
$zip = $shell.NameSpace($file) | |
foreach($item in $zip.items()) | |
{ | |
$shell.Namespace($destination).copyhere($item) | |
} | |
} | |
Expand-ZIPFile –File testfile.zip –Destination c:\temp |
NewerOlder