Skip to content

Instantly share code, notes, and snippets.

View skyhoshi's full-sized avatar
🎶
Focusing

Marcus Kern skyhoshi

🎶
Focusing
View GitHub Profile
@skyhoshi
skyhoshi / AndroidSDKManager.ps1
Created September 21, 2020 16:32 — forked from AArnott/AndroidSDKManager.ps1
PowerShell script for automating the installation of Android SDKs
$AndroidToolPath = "${env:ProgramFiles(x86)}\Android\android-sdk\tools\android.bat"
if (!(Test-Path $AndroidToolPath)) {
$AndroidToolPath = "$env:localappdata\Android\android-sdk\tools\android.bat"
} elseif (!(Test-Path $AndroidToolPath)) {
Write-Error "Unable to find Android SDK Manager tools."
return
}
Function Get-AndroidSDKs() {
$output = & $AndroidToolPath list sdk --all
@skyhoshi
skyhoshi / ConsoleOutputLog.cs
Created June 13, 2022 20:15 — forked from mikey-t/ConsoleOutputLog.cs
Simple C# utility class to output to both console and a log file at the same time. Use it by simply calling Output.Write() and Output.WriteLine().
public class Output
{
private readonly string LogDirPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "logs");
private static Output _outputSingleton;
private static Output OutputSingleton
{
get
{
if (_outputSingleton == null)