Skip to content

Instantly share code, notes, and snippets.

@mdolinin
mdolinin / .profile
Created September 5, 2018 23:46
Bash profile
export PATH="$HOME/.jenv/bin:$PATH"
eval "$(jenv init -)"
export GRADLE_HOME=/usr/local/Cellar/gradle/4.7/libexec/
export PATH=$PATH:$GRADLE_HOME/bin
export ANDROID_HOME=~/Library/Android/sdk
export PATH=:$ANDROID_HOME/emulator:$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
# fzf is a general-purpose command-line fuzzy finder.
@mdolinin
mdolinin / build.gradle
Created September 20, 2018 12:40
Gradle example to run JUnit5 tests on multiple browsers
//Disable default test task
test.enabled = false
def testsFailed = false
def firstFailedTestTask = ""
["chrome", "firefox", "opera", "edge"].each { clientName ->
task("${clientName}_test", type: Test) {
description = "Runs UI tests on ${clientName} client"
group = 'verification'
@mdolinin
mdolinin / build.gradle
Created November 29, 2018 21:22
Use AsserJ generator via gradle
plugins {
id 'org.assertj.generator' version '0.0.6b'
}
sourceSets {
main {
assertJ {
skip = false
setIncludes(new HashSet(['com/example/test/sf/domain/**/*.java']))
}
}
@mdolinin
mdolinin / LoggingStepsAspect.java
Created November 29, 2018 22:16
Logging Allure Steps using Spring AOP
package com.example.test.sf.config;
import io.qameta.allure.Step;
import org.apache.commons.lang3.StringUtils;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.reflect.MethodSignature;
import org.slf4j.Logger;
@mdolinin
mdolinin / github_bitbucket_multiple_ssh_keys.md
Last active January 26, 2022 15:07 — forked from yinzara/github_bitbucket_multiple_ssh_keys.md
Managing SSH keys and repo cloning using multiple accounts on GitHub and BitBucket

Why Multiple SSH keys?

There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket

You may use the same computer for work and personal development and need to separate your work.

When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.

You may have different projects you're working on where you would like to segregate your access.