Skip to content

Instantly share code, notes, and snippets.

View albertogalan's full-sized avatar

Alberto F Galan albertogalan

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

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
*pdf
*docx
*swp
*swo
#!/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

Bio Introduction

Alberto Galan is an expert in Digital Business, through data analysis can generate Marketing Growth, Market Segmentation and Accelerate Innovation. He has dilated experience in Communication and Persuasion Techniques, Neuro Linguistic Programming. NLP technique is an USA famous methodology for Efficiency Communication and Couching, that permits improve the relationship with customers and achieve faster personal goals.

He has more than 20 years of experience in different industries as Biotechnology ( Switherland, Biorad ), Automated Storage and Retrieval Systems ( Switherland, Kardex ), High Voltage Power Systems ( China, Grandtop ), received education from Spanish and UK Universities and working with Spanish, German, Switherland and Norway Enterpreuners. Also contribute in Hacker and Colearning spaces: Coderbunker (2015) Linux Colearning Leader, teaching advanced computer skills. Biohacker Barcelona (2014) organising and collaborating to cre

#!/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')