Context: "User A" has a password in a text file that he needs to share with "User B".
- User A and User B - Download and install
openssl
% brew update && brew install openssl
- User B - Generate a public key
Context: "User A" has a password in a text file that he needs to share with "User B".
openssl
% brew update && brew install openssl
package com.playdraft.hexigonimageview; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.CornerPathEffect; | |
import android.graphics.Paint; | |
import android.graphics.Path; | |
import android.graphics.PorterDuff; |
.relationship-list-item a { | |
text-decoration: none !important; | |
} | |
.relationship-list-item:hover { | |
border-left: 5px solid lighten($secondary-color, 15%); | |
} | |
.relationship-list-item:hover .relationship-list-icon { | |
background: lighten($secondary-color, 15%); |
.relationship-list-item:hover { | |
a { | |
text-decoration: none !important; | |
} | |
.relationship-list-icon { | |
background: lighten($secondary-color, 15%); | |
} | |
&.selected { | |
border-left: 5px solid darken($secondary-color, 10%); | |
.relationship-list-icon { |
# config/initializers/graphql_boolean_parameter.rb | |
# frozen_string_literal: true | |
GraphQL::BOOLEAN_TYPE.class_eval do | |
REGEX = /^(true|false|t|f|0|1)$/ | |
define_method(:validate_input) do |value, ctx| | |
super(coerce_input(value, ctx), ctx) | |
end |
# brew install reattach-to-user-namespace | |
# https://robots.thoughtbot.com/how-to-copy-and-paste-with-tmux-on-mac-os-x | |
set-option -g default-command "reattach-to-user-namespace -l bash" | |
# Act like Vim | |
set-window-option -g mode-keys vi | |
bind-key h select-pane -L | |
bind-key j select-pane -D | |
bind-key k select-pane -U | |
bind-key l select-pane -R |
I hereby claim:
To claim this, I am signing this object:
map rr :exec ":silent !tmux send-keys -t 1 'zspec %". ":" . line('.') . "' C-m"<CR>:redraw!<cr> | |
map tt :exec ":silent !tmux send-keys -t 1 'zcuke %". ":" . line('.') . "' C-m"<CR>:redraw!<cr> |
:%s/:\(\w*\) =>/\1:/g |
1) backup production database: | |
heroku pgbackups:capture --expire --remote production | |
2) obtain url string to backup from step 1: | |
heroku pgbackups:url --app production_app_name --remote production_app_branch_name | |
3) transfer backup from production to staging app: | |
heroku pgbackups:restore DATABASE 'production_app_backup_url_string_from_step_2' --app production_app_name --app staging_app_name --confirm staging_app_name |