Skip to content

Instantly share code, notes, and snippets.

View hhue13's full-sized avatar

hhue13

  • https://2innovate.at/
  • Vienna
View GitHub Profile
@hhue13
hhue13 / keytool-self-signed-certificate.md
Created February 11, 2022 11:23 — forked from elton-alves/keytool-self-signed-certificate.md
Self signed certificates with keytool
@hhue13
hhue13 / getCpuPerThread.awk
Last active August 27, 2021 15:10
Based on a J9 thread dump print out the thread name, Thread-id and used CPU. Invoke it from the command line like: cat javacore.20210827.090629.1350.0004.txt | gawk -f ~/data/projects/pva/getCpuPerThread.awk | sort -n
BEGIN {
FS=" "
threadName = ""
threadId = ""
threadNameRegEx = "/^.*\s+(\".*\")\s+.*/"
cpuTime = -1
print "cpuTime;threadName;threadId"
}
/.*3XMTHREADINFO .*/ { handleThreadInfo() }
@hhue13
hhue13 / GetMSSQLDriverVersion.java
Last active July 28, 2021 10:41
Small Java class to determine the version of he MS-SQL driver version.
// To run it execute: java -cp <path>/getMSSQLDriverVersion.jar:<path>/mssql.jar at.twoinnovate.hhue.epo.GetMSSQLDriverVersion
package at.twoinnovate.hhue.epo;
import com.microsoft.sqlserver.jdbc.*;
public class GetMSSQLDriverVersion {
public static void main(String[] args) throws SQLServerException {
SQLServerDatabaseMetaData metaData = new SQLServerDatabaseMetaData(null);
@hhue13
hhue13 / onename verification
Created September 7, 2017 15:28
onename verification
Verifying that "hhue13.id" is my Blockstack ID. https://onename.com/hhue13