This is an opinionated handbook on how I migrated all my Rails apps off the cloud and into VPS.
This is how I manage real production loads for my Rails apps. It assumes:
- Rails 7+
- Ruby 3+
- PostgreSQL
- Ubuntu Server 24.04
- Capistrano, Puma, Nginx
| #!/bin/bash | |
| # Script to copy all branches from https://github.com/hhimanshu/the-todo-app to a new repository | |
| # Usage: ./copy-repo-branches.sh <new-repository-url> | |
| set -e # Exit on any error | |
| # Source repository (always the same) | |
| SOURCE_REPO_URL="https://github.com/hhimanshu/the-todo-app" |
This is an opinionated handbook on how I migrated all my Rails apps off the cloud and into VPS.
This is how I manage real production loads for my Rails apps. It assumes:
| #!/bin/bash | |
| # prisma does not generate rollback (down script by default) | |
| # this script will generate the down script for each migration | |
| name=$1 | |
| dir=$(pwd) | |
| if [ -z "$name" ] | |
| then |
| name: pr_to_master | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| env: | |
| DBT_PROFILES_DIR: ./ | |
| MSSQL_USER: ${{ secrets.MSSQL_USER }} |
| import java.io.File | |
| import akka.actor.ActorSystem | |
| import akka.http.scaladsl.Http | |
| import akka.http.scaladsl.server.Directives._ | |
| import akka.stream.ActorMaterializer | |
| import akka.stream.scaladsl.{Sink, Source} | |
| import scala.io.StdIn |
When I started erlang, I had a hard time thinking of ideas for projects to improve my skills. Now I have way too many ideas to possibly implement Myself. Since I actually want these projects to exist so I can use them (everlasting glory coming secondary to some handy tools) I have written them up here. Feel free to try them out. I'm open to questions and suggestions.
swagger is a JSON spec for REST APIs. Once you have written a spec in swagger, it can generate documentation (demo) and REST handlers.
An erlang swagger library should take swagger specs and generate cowboy_rest handlers for them.
Difficulty: low
Heil PR40 Package - http://www.bswusa.com/Dynamic-Microphones-Heil-Sound-PR40-Package-P7628.aspx
This is a great deal, and is a perfect mic for this stuff.
OC White Boom - http://www.ocwhite.com/broadcast-arms/proboomtm-elite-extended-reach-mic-arm-with-riser-45-reach-12-vertical-riser.html
The kit comes with a boom. It is decent, I guess, but this OC White boom is badass prostyle with a 4' reach and a 15" riser that lets it live behind my monitor.