Skip to content

Instantly share code, notes, and snippets.

@tiborvass
tiborvass / s3etag.sh
Created January 31, 2020 00:49 — forked from emersonf/s3etag.sh
A Bash script to compute ETag values for S3 multipart uploads on OS X.
#!/bin/bash
if [ $# -ne 2 ]; then
echo "Usage: $0 file partSizeInMb";
exit 0;
fi
file=$1
if [ ! -f "$file" ]; then
@tiborvass
tiborvass / win32test.go
Last active January 8, 2018 13:57 — forked from dave-tucker/win32test.go
Detect on Windows if virtualization is enabled in the BIOS
package main
import (
"fmt"
"syscall"
)
func main() {
var mod = syscall.NewLazyDLL("kernel32.dll")
var proc = mod.NewProc("IsProcessorFeaturePresent")