Skip to content

Instantly share code, notes, and snippets.

View alfredopalhares's full-sized avatar

Alfredo Palhares alfredopalhares

  • Prozis
  • Ponte de Lima, Portugal
View GitHub Profile
Hello,
I would like to be able to make a custom DSL that is based on set of ther DSL, to further explain myself I will show the problem:
We have a base DSL that defines a new VPC on AWS, that code it has all the necessary network settings witha all the subnets settings, DMZ style, security groups, etc
Currently we have the base code with all the variables set, so if a team needs to set the new network settings, they will just copy the code, update the ``varibales.tf`` to their needs.
This works up to the point when I need to update base terraform syntax, it becomes a tedious and error prone to pass those changes accross all the existent networks.
---
- hosts:
- oracle-db-prod
- teg-prd-db
become: true
vars:
oracle_base: "/u01/app/oracle"
rman_retention_policy: "RECOVERY WINDOW OF 7 DAYS"
@alfredopalhares
alfredopalhares / backup-offline.sh
Last active January 29, 2018 15:30
Simple duplicity backup script
#!/usr/bin/env bash
# Backup script to an offline external drive
#
# Assumptions:
# * The drive is already mounted and it matches the destination
# * The encryption is taken care at the drive itself and its decypted before
# the script starts
#
# Is its recomemended to run this script without perfoming any workload

Fitness - Garmin Instinct

TODO

  • Tentar Garmin Exppress no Wine
  • Investigar ferramentas para analisar fit files

Updating

Updating is always a pain, since I don't have garmin express

Keybase proof

I hereby claim:

  • I am alfredopalhares on github.
  • I am alfredopalhares (https://keybase.io/alfredopalhares) on keybase.
  • I have a public key whose fingerprint is 1939 72B8 E30B 7A8D D822 535B C349 E2F2 4B94 1CE6

To claim this, I am signing this object:

@alfredopalhares
alfredopalhares / README.md
Last active March 1, 2021 16:47
Collect Azure Resource List and Virtual Machines into SQLite
@alfredopalhares
alfredopalhares / CDG.py
Last active February 28, 2023 21:16
Beancount Importer Module for the Caixa Geral Depositos Bank
""" I need Core Number D for decimal values """
from beancount.core.number import Decimal
from beancount.ingest import importer
from beancount.core import account
from beancount.core import amount
from beancount.core import flags
from beancount.core import data
from beancount.core.position import Cost
import csv