Skip to content

Instantly share code, notes, and snippets.

View bramtechs's full-sized avatar
🐺

brambasiel bramtechs

🐺
View GitHub Profile
@nmarley
nmarley / README.md
Last active June 7, 2024 19:45
Go / C++ bindings example

Go / C++ bindings example

This is an example of Go code calling to a C++ library with a C wrapper.

Build

go build  # this only ensures it compiles
@theratman
theratman / change_filename_to_md5.sh
Last active June 18, 2023 20:04
Rename files to md5 sum plus extension
#!/bin/bash
# For Mac OS X version (md5)
MD="md5 -r"
# For Linux version (md5sum)
MD="md5sum"
for i in ./*; do
mv "${i}" "./$($MD "$i" | awk '{print $1}').${i##*.}"