Skip to content

Instantly share code, notes, and snippets.

View olamy's full-sized avatar
🏃‍♂️
running

Olivier Lamy olamy

🏃‍♂️
running
View GitHub Profile
input="./release.txt"
git tag -l > $input
while IFS= read -r line
do
echo "$line"
# 19 because maven-shade-plugin- :)
version=${line:19}
eval "gh release create --generate-notes --title $version $line"
done < "$input"
@gregw
gregw / threadwatch.sh
Created September 5, 2019 07:21
Script to match /proc/PID data with jstack
#!/bin/bash
PID=$1
CPUFILE=/tmp/cpu-$PID-0
LASTFILE=/tmp/cpu-$PID-1
>$LASTFILE
function cleanup { rm $CPUFILE $LASTFILE ; }
trap cleanup EXIT