NOTE: Do not use self signed certificates in PRODUCTION, for that use a certificate signed by some CA (Certification Authority), and then avoid man-in-the-middle attack.
This file contains hidden or 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
Verifying that "hhue13.id" is my Blockstack ID. https://onename.com/hhue13 |
This file contains hidden or 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
// 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); |
This file contains hidden or 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
BEGIN { | |
FS=" " | |
threadName = "" | |
threadId = "" | |
threadNameRegEx = "/^.*\s+(\".*\")\s+.*/" | |
cpuTime = -1 | |
print "cpuTime;threadName;threadId" | |
} | |
/.*3XMTHREADINFO .*/ { handleThreadInfo() } |
This file contains hidden or 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
#!/bin/env bash | |
######################################################################################################################### | |
## Tail all logs of all pods in a namespace to a directory | |
## | |
## Parameters: <ns> --> Namespace which pods are logged | |
## <outDir> --> targetDirectory for the logoutput. Defaults to /tmp | |
######################################################################################################################### | |
set -o pipefail | |
NS=${1?"missing arg 1 for Namespace"} |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# httpsServer.py | |
# | |
# Inspired by: https://anvileight.com/blog/posts/simple-python-http-server/ | |
#################################################################################### | |
''' | |
Start the server: | |
httpsServer.py \ |