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
private String tryHandshake(String urlStr, String userOrSession) throws IOException { | |
URL url = new URL( | |
urlStr + /*joinserver.jsp*/ "?" + | |
"user=" + this.mc.session.username + | |
"&sessionId=" + this.mc.session.sessionId + | |
"&serverId=" + userOrSession | |
); | |
// Create URL with timeout | |
HttpURLConnection huc = (HttpURLConnection) url.openConnection(); |
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
<# | |
.SYNOPSIS | |
Script to Initialize my custom powershell setup. | |
.DESCRIPTION | |
Script uses scoop | |
.NOTES | |
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted. | |
Author: Mike Pruett | |
Date: October 18th, 2018 |