Skip to content

Instantly share code, notes, and snippets.

View procamora's full-sized avatar

Pablo procamora

View GitHub Profile
---
yaml-files:
- '*.yaml'
- '*.yml'
- '.yamllint'
extends: default
rules:
braces:
#!/bin/bash
# Author: Pablo Rocamora (aka procamora)
#set -ex
function print_format() {
#echo -e "${GREEN_COLOUR}$1${RESET_COLOUR}" # print stdout
>&2 echo -e "${BLUE_COLOUR}$1${RESET_COLOUR}" # print stderr
}
#!/bin/bash
# Source: https://gitlab.molnix.com/molnix-open-source/backuppc-ubuntu-installer/-/raw/master/backuppc-ubuntu-installer
# wget -q -O - https://gist.githubusercontent.com/procamora/c32acb2f3ca4fb49c66e879644b11dc2/raw/04fffd518d8a54b624a6d0331b41c141970d4239/backuppc-ubuntu-installer.sh | sudo bash
set -e
if [[ $1 == "install" || $1 == "upgrade" ]]; then
ACTION=$1
elif [[ $1 == "" ]]; then
ACTION=install
else
#!/bin/bash
apk update && apk upgrade && apk add git python3
git clone https://github.com/procamora/flask-health.git health/ && cd health
pip3 install -r requirements.txt
python3 health.py &
@procamora
procamora / certified_generator.sh
Last active March 29, 2020 19:54
Script to generate a self-signed CA and certificates signed by that CA. You can use both openssl and keytool.
#!/bin/bash
# Fuente 1: https://publib.boulder.ibm.com/tividd/td/TRM/SC23-4822-00/es_ES/HTML/user284.htm
# Fuente 2: https://justanothersysadminblog.wordpress.com/2014/03/18/crear-una-ca-propia-con-la-que-firmar-certificados-ssl/
# Fuente 3: https://gist.github.com/fntlnz/cf14feb5a46b2eda428e000157447309#file-self-signed-certificate-with-custom-ca-md
set -x
# Variables de entorno común de configuración