Skip to content

Instantly share code, notes, and snippets.

View binarypatrick's full-sized avatar

Patrick binarypatrick

View GitHub Profile
@binarypatrick
binarypatrick / dd-init.sh
Last active November 8, 2023 15:42
Datadog Docker Init Script
#!/bin/sh
# Install dependencies
apt-get update && apt-get install -y --no-install-recommends curl
# URL creation
DATADOG_DEB_FILENAME="datadog-dotnet-apm_${TRACER_VERSION}"
case $(uname -m) in
"aarch64") ARCH_STRING=arm64 ;;
"arm64") ARCH_STRING=arm64 ;;
@binarypatrick
binarypatrick / update-docker-compose.sh
Created August 4, 2023 12:39
Provides a way to pull down changes to a docker compose file and restart docker when changes are detected
#!/bin/bash
git branch -q -c main
git fetch -q origin
ISCURRENT=$(git status | grep -c 'Your branch is up to date')
if [ $ISCURRENT == "1" ]; then
echo 'No changes. Exiting...'
exit
fi