Send multiple emails to different recipients.
# app/mailers/notify_mailer.rb
class NotifyMailer < ApplicationMailer
class Profile extends React.Component { | |
render(props) { | |
return <div>{props}</div> | |
} | |
} | |
// Dumb component | |
function Profile(props) { | |
return <div>{props}</div> |
First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails
gem 'pry-rails', group: :development
Then you'll want to rebuild your Docker container to install the gems
import React from 'react' | |
// Example 1: translation | |
const TranslationContext = { | |
// most likely, from Provider or any other top-level component | |
locale: 'en', | |
strings: { | |
en: { | |
'user.my_account': 'My account' |
Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
Based on this tutorial but simplified and inlined. Particularly removed any Rails and 3rd party services part, assumed you just need deployment to any Ubuntu machine.
#!/usr/bin/env bash | |
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/ | |
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c | |
# https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver | |
# https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception | |
# https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal | |
# https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04 | |
# Versions | |
CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE` |
class ExampleController | |
include OrderingHelpers | |
def index | |
@clients = Clients.order(sanitized_ordering).where(user_id: current_user.id) | |
end | |
end |