Skip to content

Instantly share code, notes, and snippets.

Avatar
👻
doing crazy things

Tiago Carrondo tcarrondo

👻
doing crazy things
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am tcarrondo on github.
  • I am tcarrondo (https://keybase.io/tcarrondo) on keybase.
  • I have a public key ASDwmi0_jqjR3-XkYAVzfLwHwuuGEHTK9_UiP2ViGPPu9Qo

To claim this, I am signing this object:

View route53_dump.sh
#!/bin/bash
zonename=$1
profile=$2
hostedzoneid=$(aws route53 --profile=$profile list-hosted-zones | jq -r ".HostedZones[] | select(.Name == \"$zonename.\") | .Id" | cut -d'/' -f3)
aws route53 --profile=$profile list-resource-record-sets --hosted-zone-id $hostedzoneid --output json | jq -jr '.ResourceRecordSets[] | "\(.Name) \t\(.TTL) \t\(.Type) \t\(.ResourceRecords[].Value)\n"'
@tcarrondo
tcarrondo / ddns_with_cloudflare.sh
Last active Mar 24, 2019
Auto update a Cloudflare DNS record with your public IP (DDNS)
View ddns_with_cloudflare.sh
#!/bin/sh
#
# Made with several bits from the same amount of other scripts...
# ping me if you need: Tiago Carrondo <tcarrondo@ubuntu.com>
#
# cron this file every 5 min or so...
# */5 * * * * /root/ddns_with_cloudflare.sh 2>&1 | /usr/bin/logger -t ddns_with_cloudflare
# account credentials
CLOUDFLARE_EMAIL='<cloudflare e-mail address>'
View syncevolution_generic_carddav.sh
#!/bin/bash
# Simplified by me, Tiago Carrondo <tcarrondo@ubuntu.com>
# Thanks to: Romain Fluttaz <romain@botux.fr>
# Thanks to: Wayne Ward <info@wayneward.co.uk>
# Thanks to: Mitchell Reese <mitchell@curiouslegends.com.au>
# --------------- [ Server ] ---------------- #
CONTACTS_URL=" " # add the carddav URL here
USERNAME=" " # you know this one
PASSWORD=" " # lots of ******
@tcarrondo
tcarrondo / syncevolution_generic_caldav.sh
Last active Jul 30, 2020
Script simples para sincronizar um caledário caldav com o Ubuntu Touch. Adiciona a configuração do calendário de forma independente e adiciona uma tarefa automática para que ele sincronize periodicamente.
View syncevolution_generic_caldav.sh
#!/bin/bash
# Simplified by me, Tiago Carrondo <tcarrondo@ubuntu.com>
# Thanks to: Romain Fluttaz <romain@botux.fr>
# Thanks to: Wayne Ward <info@wayneward.co.uk>
# Thanks to: Mitchell Reese <mitchell@curiouslegends.com.au>
# --------------- [ Server ] ---------------- #
CAL_URL=" " # add the caldav URL here
USERNAME=" " # you know this one
PASSWORD=" " # lots of ******
View owncloudsetup.sh
#!/bin/bash
# ---------------------------------------------------------------------------
# Ubuntu Phone - Sync Owncloud Contacts & Calendar Account
# Carddav & Caldav.
# Tested on : Ubuntu-touch vivid - ubuntu-touch/rc-proposed/bq-aquaris.en/vegetahd/
# Last edit : 2015/08/23.
# Author : Romain Fluttaz, boTux.fr, <romain@botux.fr>
# ============= [ Configuration ] ============= #