Skip to content

Instantly share code, notes, and snippets.

@MichaelNesterenko
MichaelNesterenko / sqlserver-cert.groovy
Created September 23, 2020 20:52
sql server certificate chain
package mn
import java.nio.ByteBuffer
import java.nio.channels.SocketChannel
import java.security.cert.Certificate
import java.security.cert.CertificateException
import java.security.cert.X509Certificate
import javax.net.ssl.SSLContext
import javax.net.ssl.SSLEngine
@olih
olih / jq-cheetsheet.md
Last active June 20, 2024 16:22
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

Hercules - the Mainframe Emulator

Hercules is an open source software implementation of the mainframe System/370 and ESA/390 architectures, in addition to the new 64-bit z/Architecture.

Website: http://www.hercules-390.org/

My system info:

uname -a
Darwin ejlp-macbook 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
@hkasera
hkasera / mongo-struc.js
Created March 6, 2014 10:12
A script for mongo shell to get the collection structure.
var conn = new Mongo();
db = conn.getDB(<DB_NAME>);
var cursor = db.<COLLECTION>.find();
var items = [];
items = cursor.toArray();
var dbstruc = {};
for (var i = 0; i < items.length; ++i) {
var target = items[i];
getKP(target,dbstruc);
}