This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get install python-pygments && alias pcat="pygmentize -f terminal256 -O style=native -g" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Ansible role test shim. | |
| # | |
| # Usage: [OPTIONS] ./tests/test.sh | |
| # - distro: a supported Docker distro version (default = "centos7") | |
| # - playbook: a playbook in the tests directory (default = "test.yml") | |
| # - role_dir: the directory where the role exists (default = $PWD) | |
| # - cleanup: whether to remove the Docker container (default = true) | |
| # - container_id: the --name to set for the container (default = timestamp) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import collections | |
| import datetime | |
| from os import path | |
| import pickle | |
| import sys | |
| if len(sys.argv) < 2: | |
| print('Usage: bindify.py zonefile') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LOGFILE="/var/log/gitlab-backup.log" | |
| echo "**************START*************************" >> $LOGFILE | |
| #---------1. GITLAB git repos backup --------- | |
| echo "Start the gitlab backup process" >> $LOGFILE | |
| /opt/gitlab/bin/gitlab-rake gitlab:backup:create SKIP=uploads >> $LOGFILE | |
| echo "git backup done" >> $LOGFILE | |
| echo "Now, uploading gitlab repo to s3" >> $LOGFILE |