Skip to content

Instantly share code, notes, and snippets.

@alencar
alencar / gist:094c58ad9fdfdba293a6cdc3d2e1a55e
Created October 5, 2017 16:47
Extract build date and time of a PE image for [x]Harbour
FUNCTION MAIN ( cPEImage )
IF Empty(cPEImage)
QOut("Showing info for this PE Image")
ELSE
QOut("Showing info for ", cPEImage )
ENDIF
QOut("Build Date", BuildTimeStamp(cPEImage, .T., .F.))
QOut("Build Time", BuildTimeStamp(cPEImage, .F., .T.))
@alencar
alencar / google-file-stream.c
Last active November 23, 2017 16:41
Find drive letter for Google File Stream
/*
* google-file-stream.c
* Alexandre Alencar
* alexandre dot alencar at gmail dot com
* github.com/alencar
*
* Compile with: gcc google-file-stream.c -o google-file-stream.exe -Wall
* Usage:
* FOR /F %D IN ('google-file-stream.exe') DO SET GFS=%D
*
@alencar
alencar / aws-rds-global-bundler-extractor.sh
Last active July 11, 2024 10:58
Extract AWS RDS Global Bundle certificates into a PKCS#12 keystore compatible with Java
#!/bin/bash
# Based on https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rotation.html
#
# Improvements
# - Removed Perl dependency
mydir=tmp/certs
if [ ! -e "${mydir}" ]
then