This gist was created based on the following guide: upgrading to postgresql 11 on centos 7
Create a backup:
sudo -Hiu postgres pg_dumpall > mybackup.sql
Install PostgreSQL 11:
This gist was created based on the following guide: upgrading to postgresql 11 on centos 7
Create a backup:
sudo -Hiu postgres pg_dumpall > mybackup.sql
Install PostgreSQL 11:
This is just some code I recently used in my development application in order to add token-based authentication for my api-only rails app. The api-client was to be consumed by a mobile application, so I needed an authentication solution that would keep the user logged in indefinetly and the only way to do this was either using refresh tokens or sliding sessions.
I also needed a way to both blacklist and whitelist tokens based on a unique identifier (jti)
Before trying it out DIY, I considered using:
----- BEGIN LICENSE ----- | |
Member J2TeaM | |
Single User License | |
EA7E-1011316 | |
D7DA350E 1B8B0760 972F8B60 F3E64036 | |
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD | |
FA0A2ABE 25F65BD8 D51458E5 3923CE80 | |
87428428 79079A01 AA69F319 A1AF29A4 | |
A684C2DC 0B1583D4 19CBD290 217618CD |
# .github/workflows/main.yaml | |
name: Main | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
# If you need DB like PostgreSQL, Redis then define service below. |
~/ruby via 💎 v2.5.3
➜ gem list --no-versions
then put in array gems.rb
module ExceptionHandler | |
extend ActiveSupport::Concern | |
included do | |
rescue_from ActionController::Base, | |
ActionController::API, | |
# ActionController::Middleware, | |
ActionController::Streaming, | |
ActionController::LogSubscriber, | |
ActionController::TestCase, |
All code is available in example app - https://github.com/maxivak/webpacker-rails-example-app