Skip to content

Instantly share code, notes, and snippets.

Avatar

Alberto Galan albertogalan

  • Madrid
View GitHub Profile
View jq.bash
function jq() {
if [ -f $1 ]; then
FILE=$1; shift
# Move FILE at the end as expected by native jq
command jq "$@" "$FILE"
else
command jq "$@"
fi
}
View cloud-storage.md

Storage Access methods

we have different types of access methods to a storage:

  • Block storage
  • File storage
  • Object storage
    • offer support for the Amazon S3 and OpenStack Swift , on top of Ceph cluster

Object storage vs Block Storage

@albertogalan
albertogalan / postgres.yaml
Last active Jun 29, 2020
readinessprobe livenessProbe
View postgres.yaml
containers:
- resources:
limits:
memory: 1Gi
readinessProbe:
exec:
command:
- /usr/libexec/check-container
initialDelaySeconds: 5
View connectnewserver.sh
#!/bin/bash
#Usage bash < (curl -s repo.sh )
echo "https://gist.github.com/bf98f49269664eff6b2bc47292562ae2"
if [[ $# -eq 0 ]]; then
echo "$red This command send environment setup through ssh $reset"
echo "Usage: $green BRANCH dev2/dot-branch $reset"
echo "Usage: ${FUNCNAME[0]} $green @HOST} {debian/redhat} $reset"
echo "Usage: ${FUNCNAME[0]} branch agalan@host dotbasic"
exit 0
View connectnewserver.sh
#!/bin/bash
# Usage cat script.sh | ssh HOST
MAINUSER=agalan
sudo apt-get update
sudo apt-get -y install python-simplejson
sudo apt install -y openssh-server
View odoo_insert_lead.py
#!/usr/bin/python
# -*- encoding: utf-8 -*-
import xmlrpc.client
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--db', help='database')
parser.add_argument('--name', help='lead name')
parser.add_argument('--url', help='comanany url')
View universities.md

University of Alcala de Henares

World University Ranking

Number of students : 19,438

QS Global Ranking: 481

Status: Public