- ctrl a c -> create new window
- ctrl a A -> set window name
- ctrl a w -> show all windows
- ctrl a 1|2|3|… -> switch to window n
- ctrl a " -> choose window
- ctrl a ctrl a -> switch between window
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 ubuntu:16.04 | |
LABEL "author"="Hasan Comak" | |
ENV GERRIT_VERSION="2.13.9" | |
ENV GERRIT_RELEASE=1 | |
ENV GERRIT_HOME /var/gerrit | |
ENV GERRIT_SITE ${GERRIT_HOME}/review_site |
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
version: "2" | |
services: | |
sonarqube: | |
image: sonarqube | |
ports: | |
- "9000:9000" | |
networks: | |
- sonarnet | |
environment: | |
- SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonar |
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
@Bean(name = JPA_PROPERTIES_BEAN_NAME) | |
public Properties jpaPropertiesUnitTest() { | |
Properties properties = new Properties(); | |
properties.put(PROPERTY_HIBERNATE_DIALECT, "org.hibernate.dialect.H2Dialect"); | |
properties.put(PROPERTY_HIBERNATE_SHOW_SQL, true); | |
properties.put(PROPERTY_HIBERNATE_FROMAT_SQL, true); | |
properties.put(PROPERTY_HIBERNATE_DDL, VALUE_HIBERNATE_DDL_UPDATE); | |
properties.put(PROPERTY_HIBERNATE_NAMING_STRATEGY, VALUE_HIBERNATE_DEFAULT_NAMING_STRATEGY); | |
properties.put(PROPERTY_HIBERNATE_CONNECTION_CHARSET, DEFAULT_CHARSET); |
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 Loop { | |
public static void main(String[] args) { | |
int[][] tests = {{6, 5, 4, 3, 2, 1}, {1, 2}, | |
{1, 2, 3}, {1, 2, 3, 4}, {1}}; | |
int successCount = 0; | |
try { | |
int i = 0; | |
while (true) { | |
if (thirdElementIsThree(tests[i++])) | |
successCount++; |
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
List<SomeComparableObject> objects = Arrays.asList( o1, o2, o3, ...); | |
ojbects.sort((SomeComparableObject o1, SomeComparableObject o2) -> o1.compareTo(o2)); // or with method reference | |
objects.sort(SomeComparableObject::compareTo); |
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
@Entity | |
public class Note { | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
private Long id; | |
private String title; | |
private String details; |
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 mysql:8.0 | |
LABEL description="My Custom Mysql Docker Image" | |
# Add a database | |
ENV MYSQL_DATABASE CARDS | |
#Check out docker entry point for further configuration : | |
# https://github.com/docker-library/mysql | |
COPY ./init-scripts/ /docker-entrypoint-initdb.d/ |
OlderNewer