Skip to content

Instantly share code, notes, and snippets.

FROM openjdk:11-jdk-slim
ENV DEBIAN_FRONTEND noninteractive
ENV LANG 'en_US.UTF-8'
RUN dpkg --add-architecture i386 && apt-get update -yqq && apt-get install -y \
curl \
expect \
git \
make \
import com.google.gson.annotations.SerializedName
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import java.io.FileWriter
import java.io.FileInputStream
plugins {
id("java-platform")
id("maven-publish")
I have no name!@2169c56e5d5d:/var/jenkins_home/workspace/development-pipeline/1505$ jstack -l 7421
2020-07-14 14:26:19
Full thread dump OpenJDK 64-Bit Server VM (25.242-b08 mixed mode):
"Attach Listener" #22 daemon prio=9 os_prio=0 tid=0x00007ff358001000 nid=0x268d waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
RxCachedWorkerPoolEvictor-1" #20 daemon prio=5 os_prio=0 tid=0x00007f89cd89b000 nid=0x1d2a waiting on condition [0x00007f89ec133000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000000d4f6fa38> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
@antonkazakov
antonkazakov / findbugs.gradle
Created March 3, 2019 09:06
findbugs config for all variants
apply plugin: 'findbugs'
android.applicationVariants.all { variant ->
task("findbugs${variant.name.capitalize()}", type: FindBugs) {
description "Analyze ${variant.name} code with the findbugs tool"
group "Verification"
ignoreFailures = true
effort = "default"
reportLevel = "medium"
data class Patient(
val first: String,
val second: String,
val status: String
)
@antonkazakov
antonkazakov / tokens.md
Created July 30, 2018 14:35 — forked from zmts/tokens.md
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Preconditions:

В данной заметке рассматривается работа JWT с симметичным алгоритмом шифрования (HS256/HS384/HS512)

Основы:

Аутентификация(authentication, от греч. αὐθεντικός [authentikos] – реальный, подлинный; от αὐθέντης [authentes] – автор) - это процесс проверки учётных данных пользователя (логин/пароль). Проверка подлинности пользователя путём сравнения введённого им логина/пароля с логином/паролем, сохранённым в базе данных пользователей.

Авторизация(authorization — разрешение, уполномочивание) - это проверка прав пользователя на доступ к определенным ресурсам.

@antonkazakov
antonkazakov / depencencies.txt
Last active August 18, 2017 13:01
retrofit trouble
Executing tasks: [clean, :Alfa Mobile App:assembleContinuousDebug]
Configuration on demand is an incubating feature.
The ConfigurableReport.setDestination(Object) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the method ConfigurableReport.setDestination(File) instead.
at checkstyle_8mthz5igq0hfyd39zojf8lwz2$_run_closure1$_closure3.doCall(/Users/antonkazakov/alpha/am-android/build_scripts/checkstyle.gradle:13)
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)