Command: heroku pgbackups:capture --remote production
Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712
Command: heroku pgbackups:url [db_key] --remote production
| #!/bin/bash | |
| cd / | |
| sudo apt update | |
| echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list | |
| curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - |
| # This multi-stage Dockerfile will use the full ruby image during build phase | |
| # after this it wil build the deployment image based on the slim ruby container, | |
| # copying over all artifacts from the build phase. | |
| # | |
| # The deployer image will not include a Javascript runtime and will come in at | |
| # under 200MB for an average Rails application. | |
| ARG BUILDER_FROM_IMAGE=ruby:3.0 | |
| ARG DEPLOY_FROM_IMAGE=ruby:3.0-slim | |
| ARG NODE_VERSION 14.15.4 |
| // | |
| // AGAudioRecorder.swift | |
| // BaseProject | |
| // | |
| // Created by AshvinGudaliya on 17/09/18. | |
| // Copyright © 2018 AshvinGudaliya. All rights reserved. | |
| // | |
| import UIKit | |
| import AVFoundation |
| #!/usr/bin/env ruby | |
| require "openssl" | |
| require "time" | |
| begin | |
| require "origami" | |
| rescue LoadError | |
| abort "origami not installed: gem install origami" | |
| end |
| module Devise | |
| module Models | |
| module RemoteAuthenticatable | |
| extend ActiveSupport::Concern | |
| # | |
| # Here you do the request to the external webservice | |
| # | |
| # If the authentication is successful you should return | |
| # a resource instance |
| #!/bin/bash | |
| # @link https://gist.github.com/mattscilipoti/8424018 | |
| # | |
| # Called by "git push" after it has checked the remote status, | |
| # but before anything has been pushed. | |
| # | |
| # If this script exits with a non-zero status nothing will be pushed. | |
| # | |
| # Steps to install, from the root directory of your repo... |
| require 'openssl' | |
| class String | |
| def encrypt(key) | |
| cipher = OpenSSL::Cipher.new('DES-EDE3-CBC').encrypt | |
| cipher.key = Digest::SHA1.hexdigest key | |
| s = cipher.update(self) + cipher.final | |
| s.unpack('H*')[0].upcase | |
| end |
| <% header "Content-Type" => "text/html" %> | |
| <h1>Let's run some ruby code: <%= rand %></h1> |
| load 'deploy/assets' | |
| namespace :deploy do | |
| namespace :assets do | |
| desc 'Run the precompile task locally and rsync with shared' | |
| task :precompile, :roles => :web, :except => { :no_release => true } do | |
| %x{bundle exec rake assets:precompile} | |
| %x{rsync --recursive --times --rsh=ssh --compress --human-readable --progress public/assets #{user}@#{host}:#{shared_path}} | |
| %x{bundle exec rake assets:clean} | |
| end |