https://chiranjeevigk.wordpress.com/2017/08/01/install-lsi-megariad-storage-manger-on-proxmox/
1: Install MegaRaid CLI
Add repo
edit /etc/apt/sources.list add the entry
deb http://hwraid.le-vert.net/debian jessie main
https://chiranjeevigk.wordpress.com/2017/08/01/install-lsi-megariad-storage-manger-on-proxmox/
1: Install MegaRaid CLI
Add repo
edit /etc/apt/sources.list add the entry
deb http://hwraid.le-vert.net/debian jessie main
| #!/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) |
These are some simple bash functions and scripts for making CSV/TSV files prettier on the command line
see http://stefaanlippens.net/pretty-csv.html for more information.
| #!/usr/bin/env bash | |
| # Documentation | |
| # https://docs.gitlab.com/ce/api/projects.html#list-projects | |
| NAMESPACE="YOUR_NAMESPACE" | |
| BASE_PATH="https://gitlab.example.com/" | |
| PROJECT_SEARCH_PARAM="" | |
| PROJECT_SELECTION="select(.namespace.name == \"$NAMESPACE\")" | |
| PROJECT_PROJECTION="{ "path": .path, "git": .ssh_url_to_repo }" |
| get_latest_release() { | |
| curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
| grep '"tag_name":' | # Get tag line | |
| sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
| } | |
| # Usage | |
| # $ get_latest_release "creationix/nvm" | |
| # v0.31.4 |
| #! /usr/bin/env python2 | |
| # Copyright (C) 2016 Sebastian Pipping <[email protected]> | |
| # Licensed under AGPL v3 or later | |
| from __future__ import print_function | |
| import argparse | |
| import errno | |
| import os | |
| import re |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
git archive --format=tar.gz -o /tmp/my-repo.tar.gz --prefix=my-repo/ master
More detailed version: https://til.simonwillison.net/git/git-archive
| --- | |
| - hosts: all | |
| gather_facts: no | |
| vars: | |
| string: "string" | |
| list: | |
| - item1 | |
| - item2 | |
| dict: | |
| key1: value1 |
| <!-- Jinja Unique ID Generator --> | |
| {% macro random_int(len) -%} | |
| {% for n in range(len) %} | |
| {{ [0,1,2,3,4,5,6,7,8,9]|random }} | |
| {% endfor %} | |
| {%- endmacro %} | |
| {% macro unique_id(count_groups=5, group_len=6, separator='-') -%} | |
| {% set parts %} |