Command: heroku pgbackups:capture --remote production
Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712
Command: heroku pgbackups:url [db_key] --remote production
| #!/usr/bin/env bash | |
| DATABASE_URL="postgres://MyPostgresUser:MyPostgresPassword@192.168.0.1:5432/MyPostgresDB" | |
| # `cut` is used to cut out the separators (:, @, /) that come matched with the groups. | |
| DATABASE_USER=$(echo $DATABASE_URL | grep -oP "postgres://\K(.+?):" | cut -d: -f1) | |
| DATABASE_PASSWORD=$(echo $DATABASE_URL | grep -oP "postgres://.*:\K(.+?)@" | cut -d@ -f1) | |
| DATABASE_HOST=$(echo $DATABASE_URL | grep -oP "postgres://.*@\K(.+?):" | cut -d: -f1) | |
| DATABASE_PORT=$(echo $DATABASE_URL | grep -oP "postgres://.*@.*:\K(\d+)/" | cut -d/ -f1) |
| background #e8e9ec | |
| foreground #33374c | |
| selection_background #d2d4dd | |
| selection_foreground #33374c | |
| cursor #33374c | |
| cursor_text_color #e8e9ec | |
| # white |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| # | |
| # This file is the units database for use with GNU units, a units conversion | |
| # program by Adrian Mariano adrianm@gnu.org | |
| # | |
| # March 2014 Version 2.10 | |
| # | |
| # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2006 | |
| # 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 | |
| # Free Software Foundation, Inc | |
| # |
| CarrierWave.configure do |config| | |
| if Rails.env.development? || Rails.env.test? | |
| config.storage = :file | |
| else | |
| config.storage = :fog | |
| config.fog_credentials = { | |
| :provider => 'OpenStack', | |
| :openstack_auth_url => 'https://auth.selcdn.ru/v1.0', | |
| :openstack_username => Rails.application.secrets.openstack_username, | |
| :openstack_api_key => Rails.application.secrets.openstack_api_key |
| // ---- | |
| // Sass (v3.3.0.rc.2) | |
| // Compass (v1.0.0.alpha.17) | |
| // ---- | |
| // Counts the number of occurrences of each value of $list | |
| // ------------------------------------------------------------------------------- | |
| // @param $list [List] : list | |
| // ------------------------------------------------------------------------------- | |
| // @return [Map] |
| <div></div> |
| def to_i(w) | |
| r = 0 | |
| w.each_char { |ch| r = r | (1 << ch.ord - 96) } | |
| r | |
| end | |
| @dict_word_letters = {} |