This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:8 | |
# Alternative mirror: https://sourceforge.net/projects/openofficeorg.mirror/ | |
# libXmu-1.1.2-2.el7.x86_64 required for libXmu.so.6, freetype-2.4.15-11.el7.x86_64 required for libfreetype.so.6 | |
RUN cd /tmp && \ | |
curl -LO https://archive.apache.org/dist/incubator/ooo/files/stable/3.4.1/Apache_OpenOffice_incubating_3.4.1_Linux_x86-64_install-rpm_en-US.tar.gz && \ | |
tar -xzf Apache_OpenOffice_incubating_3.4.1_Linux_x86-64_install-rpm_en-US.tar.gz && \ | |
rm -f Apache_OpenOffice_incubating_3.4.1_Linux_x86-64_install-rpm_en-US.tar.gz && \ | |
yum install -y libXmu.x86_64 freetype.x86_64 && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: StatefulSet | |
metadata: | |
name: try-mongo | |
spec: | |
serviceName: "mongo" | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: mongo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[log] | |
date = relative | |
[format] | |
pretty = format:%C(Yellow)%h%Creset %Cblue%ad%Creset %Cgreen%ae%Creset %Cred%d%Creset %s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
LOGBack example | |
--> | |
<configuration> | |
<!-- console appender --> | |
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | |
<encoder> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://controller:6080/vnc_auto.html?token=3c16709b-8abd-42f6-9ed2-30c4d2bfaa66 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.augmentis.ayp.crimin.model; | |
import android.content.Context; | |
import android.database.sqlite.SQLiteDatabase; | |
import android.database.sqlite.SQLiteOpenHelper; | |
import android.util.Log; | |
import com.augmentis.ayp.crimin.model.CrimeDbSchema.CrimeTable; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Deadlock { | |
static class Friend { | |
private final String name; | |
public Friend(String name) { | |
this.name = name; | |
} | |
public String getName() { | |
return this.name; | |
} | |
public synchronized void bow(Friend bower) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread-0 is waiting for Lock 1 | |
Thread-3 is waiting for Lock 2 | |
Thread-2 is waiting for Lock 1 | |
Thread-5 is waiting for Lock 2 | |
Thread-4 is waiting for Lock 2 | |
Thread-1 is waiting for Lock 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SynchonizationLab implements Runnable { | |
final private MyLock lock; | |
SynchonizationLab(MyLock lock) { | |
this.lock = lock; | |
} | |
@Override | |
public void run() { |