Skip to content

Instantly share code, notes, and snippets.

View ScarletLovell's full-sized avatar
🕶️
coding. coding. coding. coding. coding. coding. coding.

Scarlet_Lovell ScarletLovell

🕶️
coding. coding. coding. coding. coding. coding. coding.
View GitHub Profile
@ScarletLovell
ScarletLovell / NetClientHandler.java
Last active February 23, 2023 02:09
Adds both new & old authentication methods for servers through one function
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();
@ScarletLovell
ScarletLovell / shell-setup.ps1
Created January 20, 2023 03:02 — forked from mikepruett3/shell-setup.ps1
Packages to install via scoop, winget, choco, and other tools...
<#
.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