Send multiple emails to different recipients.
# app/mailers/notify_mailer.rb
class NotifyMailer < ApplicationMailer| #!/bin/sh | |
| # Variables | |
| FOLDER_NAME="CrossOverLicence" | |
| PLIST_NAME="com.codeweavers.CrossOver.license.plist" | |
| BOTTLES_PATH="$HOME/Library/Application Support/CrossOver/Bottles" | |
| SCRIPT_URL="https://gist.githubusercontent.com/repsejnworb/84d3e0852cf90ef40edf7e9c060f193b/raw/CrossOverLicence.sh?token=$(date +%s)" | |
| TOTAL_STEPS=3 | |
| STEP=0 |
| 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: :developmentThen 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` |