Skip to content

Instantly share code, notes, and snippets.

@stdStudent
stdStudent / Get-VstVersion.ps1
Last active August 21, 2025 09:00
A PowerShell script to determine a VST version (VST2, VST3).
<#
# License: MPL-2.0
# Text: https://www.mozilla.org/en-US/MPL/2.0/
#>
<#
.SYNOPSIS
Determines the VST plugin type by analyzing the DLL exports.
.DESCRIPTION
Analyzes a DLL file to determine if it is a VST2 or VST3 plugin by examining its exports.
@stdStudent
stdStudent / PublicIp.kt
Created August 5, 2025 12:05
Get public IP address via DNS (Android, Kotlin)
/**
* License: MPL 2.0
* Text: https://www.mozilla.org/en-US/MPL/2.0/
*/
import android.util.Log
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import java.net.DatagramPacket
import java.net.DatagramSocket
@stdStudent
stdStudent / CurrentlyDisplayedLocale.kt
Last active September 7, 2024 04:27
Android, Locale utilities: get a currently displayed locale at a device's system level, validate a locale or a language tag
/**
* Licensed under the BSD-3-Clause-Clear license.
* The license text in enclosed in the comment section.
*/
/**
* The idea is to use the hidden SYSTEM_LOCALES ("system_locales") setting
* to get the currently displayed locale. Although the documentation says
* that one must use `LocaleList.getDefault` instead, I couldn't really