Grab new backup of database
Command: heroku pgbackups:capture --remote production
Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712
Get url of backup download
Command: heroku pgbackups:url [db_key] --remote production
| // list of hc-10 AT commands | |
| // http://fab.cba.mit.edu/classes/863.15/doc/tutorials/programming/bluetooth/bluetooth40_en.pdf | |
| // If you haven't configured your device before use this | |
| #define BLUETOOTH_SPEED 9600 //This is the default baudrate that HC-10 uses | |
| #include <SoftwareSerial.h> | |
| // Swap RX/TX connections on bluetooth chip | |
| // Pin 10 --> Bluetooth TX |
| # source https://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/ | |
| git checkout -b fix_empty_poster | |
| # do some commits to new branch | |
| # create patch file | |
| git format-patch master --stdout > fix_empty_poster.patch | |
| # check stats | |
| git apply --stat fix_empty_poster.patch | |
| # check errors if any | |
| git apply --check fix_empty_poster.patch | |
| # apply it |
Grab new backup of database
Command: heroku pgbackups:capture --remote production
Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712
Get url of backup download
Command: heroku pgbackups:url [db_key] --remote production
| require 'rubygems' | |
| require 'pi_piper' | |
| # include PiPiper | |
| # blink example | |
| def pin | |
| @pin ||= PiPiper::Pin.new(pin: 17, direction: :out) | |
| end |
| require 'rubygems' | |
| require 'tire' | |
| Tire.configure { logger 'elasticsearch.log', :level => 'debug' } | |
| class Document | |
| attr_accessor :title, :content | |
| include Tire::Model::Persistence | |
| include Tire::Model::Search | |
| include Tire::Model::Callbacks |