Skip to content

Instantly share code, notes, and snippets.

View albertogalan's full-sized avatar

Alberto F Galan albertogalan

  • Madrid
View GitHub Profile
gist -d "Random rbx bug" a.rb
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
}

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 June 29, 2020 17:34
readinessprobe livenessProbe
containers:
- resources:
limits:
memory: 1Gi
readinessProbe:
exec:
command:
- /usr/libexec/check-container
initialDelaySeconds: 5
#!/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
#!/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
#!/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')

University of Alcala de Henares

World University Ranking

Number of students : 19,438

QS Global Ranking: 481

Status: Public

*pdf
*docx
*swp
*swo