Skip to content

Instantly share code, notes, and snippets.

View BorisOsipov's full-sized avatar
:shipit:

Boris Osipov BorisOsipov

:shipit:
View GitHub Profile
function generateAuthenticationString(password, salt, challenge) {
const step1 = password + salt;
const step2 = sha256(step1); // SHA256 binary hash
const base64Secret = Buffer.from(step2, 'hex').toString('base64');
const step3 = base64Secret + challenge;
const step4 = sha256(step3); // SHA256 binary hash
const authenticationString = Buffer.from(step4, 'hex').toString('base64');
> Task :statics:compileTestJava FAILED
An exception has occurred in the compiler (17.0.3.1). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program, the following diagnostic, and the parameters passed to the Java compiler in your report. Thank you.
java.util.ServiceConfigurationError: com.sun.source.util.Plugin: Provider com.github.bsideup.jabel.JabelCompilerPlugin could not be instantiated
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:586)
at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:813)
at java.base/java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:729)
at java.base/java.util.ServiceLoader$3.next(ServiceLoader.java:1403)
at jdk.compiler/com.sun.tools.javac.api.BasicJavacTask.initPlugins(BasicJavacTask.java:220)
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.prepareCompiler(JavacTaskImpl.java:204
@Test
fun shouldPassOnNoInternetScanTest() =
beforeTest {
activityTestRule.launchActivity(null)
// some things with the state
}.afterTest {
// some things with the state
}.run {
step("Open Simple Screen") {
MainScreen {
const mySecretAwareObject = {
login: "foo",
password: "haha"
}
Object.defineProperty(mySecretAwareObject, "password", {
enumerable: false,
value: 'supersecretpassword'
})
@BorisOsipov
BorisOsipov / Capture.kt
Created February 18, 2020 10:38 — forked from atsiarenia/Capture.kt
Additional helpers methods for kakao/kaspresso
import android.view.View
import android.webkit.WebView
import android.widget.CheckedTextView
import android.widget.TextView
import androidx.test.espresso.ViewInteraction
import androidx.test.espresso.assertion.ViewAssertions
import com.agoda.kakao.common.views.KBaseView
import com.agoda.kakao.common.views.KView
import com.agoda.kakao.screen.Screen
import com.agoda.kakao.text.KTextView
@BorisOsipov
BorisOsipov / Win10-64bit-npm.md
Last active January 30, 2020 08:27 — forked from jtrefry/Win10-64bit-npm.md
Configuring Windows 10 (64-bit) for npm and node-gyp
  • Install Git for Windows
  • Install all the required tools and configurations using Microsoft's windows-build-tools using npm install --global --production windows-build-tools from an elevated PowerShell or CMD.exe (run as Administrator).
├───allure-reporter
│ │ package.json
│ │ README.md
│ │ wdio-allure-reporter-5.0.0-beta.4.tgz
│ │
│ └───build
│ constants.js
│ index.js
│ utils.js
@BorisOsipov
BorisOsipov / ultimate-ut-cheat-sheet.md
Created December 30, 2017 20:23 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies


@BorisOsipov
BorisOsipov / git-cheat-list.md
Created February 18, 2017 11:22
Git cheat list

Git cheat list

  • name of the current banch and nothing else (for automation)

    git rev-parse --abbrev-ref HEAD
    
  • all commits that your branch have that are not yet in master

    git log master..<HERE_COMES_YOUR_BRANCH_NAME>
    
@BorisOsipov
BorisOsipov / Selenide cheat sheet
Created February 14, 2016 09:10 — forked from makolesnik/Selenide cheat sheet
Selenide cheat sheet to create concise UI tests in Java. What is Selenide? Selenide is a wrapper for Selenium WebDriver. http://selenide.org/
=Navigating=
baseUrl = "http://site.com";
open("/login");
open("http://google.com");
switchTo().frame($("#myFrame").toWebElement());
=WebDriver=
getWebDriver().findElement(By.id("username")); // import static com.codeborne.selenide.WebDriverRunner.getWebDriver;