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 hereby claim:
To claim this, I am signing this object:
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.
| class Analytics::AppIdGenerator | |
| attr_accessor :current_site | |
| DEFAULT_APP_ID = 200 | |
| def initialize(current_site = 'fashion', _request_host = nil) | |
| self.current_site = current_site | |
| end | |
| def app_id | |
| send("#{current_site.gsub(/\.|\-/, "_")}_app_id") |
| // ---- | |
| // libsass (v3.2.4) | |
| // ---- | |
| @function modular-scale($value, $increment, $ratio) { | |
| @if $increment > 0 { | |
| @for $i from 1 through $increment { | |
| $value: ($value * $ratio); | |
| } | |
| } |
| // ---- | |
| // libsass (v3.2.4) | |
| // ---- | |
| @function modular-scale($value, $increment, $ratio) { | |
| @if $increment > 0 { | |
| @for $i from 1 through $increment { | |
| $value: ($value * $ratio); | |
| } | |
| } |
| // ---- | |
| // Sass (v3.4.13) | |
| // Compass (v1.0.3) | |
| // ---- | |
| @function chain($value, $functions...) { | |
| @each $function in $functions { | |
| $value: call(nth($function, 1), set-nth($function, 1, $value)...); | |
| } | |