Skip to content

Instantly share code, notes, and snippets.

View DmitryBash's full-sized avatar

Batracov Dmitrii DmitryBash

  • Netherlands
View GitHub Profile
@DmitryBash
DmitryBash / multiple_ssh_setting.md
Created March 19, 2020 16:08 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@DmitryBash
DmitryBash / kubernetes_commands.md
Created March 19, 2020 16:54 — forked from edsiper/kubernetes_commands.md
Kubernetes Useful Commands
@DmitryBash
DmitryBash / _README.md
Created March 24, 2020 14:06 — forked from shime/_README.md
comparing dates and times in RSpec

What is this?

How do you compare date/times in RSpec?

If you do this

expect(Time.now.to_i).to eq Time.new(2014, 4, 2).to_i
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'
@DmitryBash
DmitryBash / docker-pry-rails.md
Created March 26, 2020 14:04 — forked from briankung/docker-pry-rails.md
Using pry-rails with Docker
@DmitryBash
DmitryBash / js-functions-syntax.js
Created April 5, 2020 16:57
redux-examples-002-dispatch-mapdispatchtoprops
class Profile extends React.Component {
render(props) {
return <div>{props}</div>
}
}
// Dumb component
function Profile(props) {
return <div>{props}</div>
@DmitryBash
DmitryBash / readme.md
Created April 30, 2020 07:18 — forked from maxivak/readme.md
Send email to multiple recipients in Rails with ActionMailer

Send email to multiple recipients

Send multiple emails to different recipients.

Mailer class

# app/mailers/notify_mailer.rb

class NotifyMailer < ApplicationMailer