Skip to content

Instantly share code, notes, and snippets.

@22phuber
22phuber / resume.json
Last active January 29, 2024 08:19
My Resume, Curriculum Vitae
{
"basics": {
"name": "Patrick Huber",
"label": "Cloud Engineer / DevOps / Senior Consultant",
"image": "https://avatars.githubusercontent.com/u/17426101?v=4",
"email": "22phuber@gmail.com",
"phone": "",
"url": "https://patrickhuber.ch/",
"website": "https://patrickhuber.ch/",
"summary": "",
#!/usr/bin/env bash
# StoneAge IT
# Author: Patrick Huber (22phuber@gmail.com)
#
# Description: Automate Your PR Process with Bitbucket and Strapi
#
# This script streamlines the process of creating a pull request in a Bitbucket repository when a
# new release is available in the Strapi Github repository. Simply run the script within the
# Bitbucket pipeline, such as through a daily scheduled pipeline, to stay up-to-date with
# the latest releases from Strapi (strapi.io).
@22phuber
22phuber / Dockerfile
Created June 3, 2020 20:03
Ghost Dockerfile how to add the AWS S3 storage adapter
# Docker multistage build ghost blog with AWS S3 storage adapter
# Configure ghost-storage-adapter-s3
# => https://www.npmjs.com/package/ghost-storage-adapter-s3
# stage
FROM ghost:3.17-alpine as ghost-storage-adapter-s3
WORKDIR $GHOST_INSTALL/current
RUN yarn add "ghost-storage-adapter-s3@2.8.0"
# build
@22phuber
22phuber / dynamic-dns-update-aws-route53.sh
Last active October 5, 2022 03:55
Dynamic DNS update for AWS Route 35
#!/usr/bin/env bash
# Refactored by: Patrick Huber (22phuber@gmail.com)
# Description: Digs the current external Ipv4 and compares it to a Ipv4 locally stored in a file.
# If the ips differ, aws cli is used to update a route 53 dns record with the new Ipv4.
# This script only supports Ipv4.
# Original script source:
# - https://willwarren.com/2014/07/03/roll-dynamic-dns-service-using-amazon-route53/
# Dependencies:
# - awscli # install AWS cli: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html