export PKG_CONFIG_PATH="/opt/homebrew/opt/icu4c@77/lib/pkgconfig"
asdf install postgres 17.5
| # File: app/controllers/api/api_controller.rb | |
| class Api::ApiController < ActionController::Base | |
| # Consider subclassing ActionController::API instead of Base, see | |
| # http://api.rubyonrails.org/classes/ActionController/API.html | |
| protect_from_forgery with: :null_session | |
| before_action :authenticate | |
| def self.disable_turbolinks_cookies | |
| skip_before_action :set_request_method_cookie |
| git push heroku tailwind:master | |
| Enumerating objects: 9, done. | |
| Counting objects: 100% (9/9), done. | |
| Delta compression using up to 12 threads | |
| Compressing objects: 100% (3/3), done. | |
| Writing objects: 100% (5/5), 395 bytes | 395.00 KiB/s, done. | |
| Total 5 (delta 2), reused 0 (delta 0), pack-reused 0 | |
| remote: Compressing source files... done. | |
| remote: Building source: | |
| remote: |
| #!/usr/bin/env bash | |
| # | |
| # Sync generated site to S3 and invalidate Cloudfront distribution | |
| if [ ! -f .env ]; then | |
| echo "# Project environment variables...do not commit this file." >> .env | |
| echo "AWS_CF_DIST_ID=" >> .env | |
| echo "AWS_S3_URI=" >> .env | |
| echo "Please add the necessary values to the .env file." | |
| else |
| pg_dump --format=c --blobs --verbose --clean --file=some_db_name.dump some_db_name | |
| pg_restore --verbose --no-acl --no-owner --dbname=some_db_name some_db_name.dump |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset='UTF-8'> | |
| <title>Coinbase</title> | |
| <link href="https://cdn.jsdelivr.net/npm/tailwindcss/dist/tailwind.min.css" rel="stylesheet"> | |
| </head> | |
| <body> | |
| <div class="font-sans bg-grey-lighter flex flex-col min-h-screen w-full"> | |
| <div> |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Maintenance Page</title> | |
| <style> | |
| html{font-size:18px} | |
| body{font-family:'IBM Plex Sans',sans-serif;line-height:1.6;font-size:1em;padding:0 20px} | |
| #wrapper{width:100%;height:350px;margin:0 auto;position:absolute;top:50%;left:50%;margin-top:-175px;margin-left:-50%} |
What separates the fleeting thrill of a “great idea” from the enduring rewards of great work?
These five facts:
| $ pg_dumpall > pg_all.sql | |
| $ psql -U lsmith -f pg_all.sql postgres |