Skip to content

Instantly share code, notes, and snippets.

View siklodi-mariusz's full-sized avatar

Siklodi Mariusz siklodi-mariusz

View GitHub Profile
@siklodi-mariusz
siklodi-mariusz / aws_pg_dump_and_restore.md
Created February 14, 2022 21:08
AWS AuroraDB for PostgreSQL dump and restore through Bastion SSH tunnel

AWS AuroraDB for PostgreSQL dump and restore through Bastion SSH tunnel

AWS Bastion SSH Tunneling

The following ssh tunneling example can be used when network access to an AWS AuroraDB cluster is allowed only from certain AWS EC2 instances which themselves can not be accessed directly but only through an SSH Bastion host.

Open SSH tunnel to EC2 instance behind network firewall through bastion host

Command template

@siklodi-mariusz
siklodi-mariusz / personal_raspberry_pi_config.md
Last active October 9, 2023 08:10
Some useful RaspberryPI I use
@siklodi-mariusz
siklodi-mariusz / Dockerfile
Created January 30, 2018 19:40
Dockerfile example for Ruby on Rails running on Alpine Linux
FROM ruby:2.4-alpine3.7
# Install dependencies:
# - build-base: To ensure certain gems can be compiled
# - nodejs: Compile assets
# - postgresql-dev postgresql-client: Communicate with postgres through the postgres gem
# - libxslt-dev libxml2-dev: Nokogiri native dependencies
# - imagemagick: for image processing
RUN apk --update add build-base nodejs tzdata postgresql-dev postgresql-client libxslt-dev libxml2-dev imagemagick