Skip to content

Instantly share code, notes, and snippets.

@cjdcordeiro
cjdcordeiro / get-all-repo-contributors.sh
Created December 17, 2024 10:21
Gets the list of all contributors to a GitHub repository, including contributions to non-default branches
# Change the REPO variable to your desired repo
REPO="https://github.com/canonical/chisel-releases" # example
workdir=`mktemp -d`
>&2 echo "Cloning repo ${REPO} into ${workdir}"
git clone $REPO $workdir
(cd $workdir && \
git fetch --all --quiet && \
version: '3.4'
services:
video-analysis:
image: sixsq/faces:0.2-arm32v7
ports:
- 80:5000
restart: on-failure
devices:
- /dev/video0
@cjdcordeiro
cjdcordeiro / awx-s3-backup
Last active October 10, 2019 12:16
S3 data backup for AWX instances, based on their default installation
#!/usr/bin/env bash
set -e
stack_name=$(docker stack ls --format '{{.Name}}')
mountpoint=$(docker volume inspect ${stack_name}_pgdocker --format '{{.Mountpoint}}')
tarball=$1_$(date +'%d%m%Y').tar.gz