Skip to content

Instantly share code, notes, and snippets.

View tcarrondo's full-sized avatar
👻
doing crazy things

Tiago Carrondo tcarrondo

👻
doing crazy things
View GitHub Profile
@tcarrondo
tcarrondo / update_gitea.sh
Last active March 24, 2023 22:58
Easy update gitea binary (living on /opt)
#!/bin/bash
# Binary location
LOCATION=/opt
# Grab latest version from Gitea website
VERSION=$(curl https://dl.gitea.com/gitea/version.json | jq -r .latest.version)
# downlaod latest
wget -O "$LOCATION"/gitea-"$VERSION"-linux-amd64 https://dl.gitea.io/gitea/"$VERSION"/gitea-"$VERSION"-linux-amd64

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:

#!/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 March 24, 2019 11:10
Auto update a Cloudflare DNS record with your public IP (DDNS)
#!/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>'
#!/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 July 30, 2020 08:28
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.
#!/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 ******
#!/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 ] ============= #