Skip to content

Instantly share code, notes, and snippets.

View maksimhn's full-sized avatar

Maksim Hranin maksimhn

View GitHub Profile
# Run nextcloud-restore-application-data.sh to restore application data if needed.
# Run nextcloud-restore-database.sh to restore database if needed.
# docker-compose -p nextcloud up -d
volumes:
nextcloud-data:
nextcloud-postgres:
nextcloud-data-backups:
nextcloud-postgres-backups:
traefik-certificates:
@maksimhn
maksimhn / connect-heroku-app-to-postgres-rds-with-ssl.md
Created October 2, 2021 03:11 — forked from glarrain/connect-heroku-app-to-postgres-rds-with-ssl.md
How to connect a Heroku application to an Amazon RDS PostgreSQL instance, forcing SSL and certificate chain verification

1 - Download the RDS certificates (root plus region-specific intermediate ones) bundle:

wget -O config/rds-combined-ca-bundle.pem https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem

2 - Add config/rds-combined-ca-bundle.pem to the repository and redeploy to Heroku.

3 - Update the DATABASE_URL env var:

@maksimhn
maksimhn / cloudSettings
Last active October 3, 2017 14:05
Visual Studio Code Sync Settings Gist
{"lastUpload":"2017-10-03T14:05:50.595Z","extensionVersion":"v2.8.3"}
@maksimhn
maksimhn / index.md
Last active August 29, 2015 14:26 — forked from rstacruz/index.md
Rails models cheatsheet

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one

@maksimhn
maksimhn / project02.md
Last active August 29, 2015 14:25 — forked from GA-MEB/project02.md
WDI BOS-07 :: Project 2 Description

Project #2: Building Your First Full-Stack Application

OVERVIEW

This second project will be your first foray into building a full-stack application. You'll be building your first real back-end app, with a front-end to match, which means you'll learn about what it takes to build an API & use it.

At a high level, here are our goals for you in this project:

  • Build a single-page application (SPA) with basic user authentication that interacts with a custom API that you build
  • Build an app that can create, read, update, and delete data in a SQL database
  • Learn to create user stories and wireframes (before writing code) as part of planning out your app.

Before you come in...

OS X