Inspired By: grafana/loki#333
- docker-compose.yml
version: "3"
networks:
loki:
| #!/usr/bin/env python3 | |
| import argparse | |
| import json | |
| import logging | |
| import os | |
| import random | |
| import signal | |
| import subprocess | |
| import sys |
| #!/bin/sh | |
| # attach_ebs.sh - Attach an EBS volume to an EC2 instance. | |
| # Copyright (C) 2020 Peter Willis <peterwwillis+github@gmail.dotcom> | |
| # | |
| # This script is designed to create and mount a single EBS volume based on its tag:Name | |
| # in order to implement persistent storage. If there is more than one EBS volume | |
| # with the same tag, this script will fail. | |
| # | |
| # Order of operations: | |
| # 1. Detect EBS volume based on "tag:Name" "$TAG_NAME" |
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
| version: '3.2' | |
| services: | |
| zoo1: | |
| image: zookeeper:latest | |
| hostname: zoo1 | |
| ports: | |
| - "2181:2181" | |
| environment: | |
| ZOO_MY_ID: 1 |
Inspired By: grafana/loki#333
version: "3"
networks:
loki:
| #!/usr/bin/env bash | |
| # This script can be used to copy all docker images from one GitLab-project to another. | |
| # It was created because in GitLab it's not possible to move projects that contain docker images. | |
| # | |
| # Related issue: https://gitlab.com/gitlab-org/gitlab/-/issues/18383 | |
| # | |
| # Author: Daniel Estermann <estermad@apache.org> | |
| # Thanks to komar <komar@core.org.ua> for his brilliant support |
| #!/usr/bin/env bash | |
| set -ex | |
| if [[ ! -f /usr/local/bin/docker-compose ]]; then | |
| sudo apt install -y curl | |
| curl -s https://api.github.com/repos/docker/compose/releases/latest \ | |
| | grep browser_download_url \ | |
| | grep docker-compose-Linux-x86_64 \ | |
| | cut -d '"' -f 4 \ |
Dato un repo github che contiene solamente il composer delle dipendenze di altri repo, l'obiettivo è esporre un changelog delle modifiche di tutti i repo.
git clone https://github.com/Opencontent/composer-lock-diff.git
cd composer-lock-diff
If you're using self-signed certificate for your web server on development, you might know the browser warning saying that your certificate isn't valid. If like me you had manually added an exception for this certificate error each time it showed up, this gist is for you.
You'll have to create a self-signed certificate with a custom SubjectAltName.
find /usr/lib -name openssl.cnf