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
// lombok | |
compile('org.projectlombok:lombok:1.16.12') | |
provided("org.projectlombok:lombok:1.16.12") | |
// lorem | |
compile('com.thedeanda:lorem:2.1') | |
// springboot | |
buildscript { |
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
import java.util.Random; | |
public final class Helper { | |
public static int randomInteger(int min, int max) { | |
return min + (int) (Math.random() * ((max - min) + 1)); | |
} | |
public static String randomString(int length) { | |
String letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; |
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
/** | |
* loadJSONP( url, hollaback [, context] ) -> Null | |
* - url (String): URL to data resource. | |
* - hollaback (Function): Function to call when data is successfully loaded, | |
* it receives one argument: the data. | |
* - context (Object): Context to invoke the hollaback function in. | |
* | |
* Load external data through a JSONP interface. | |
* | |
* ### Examples |
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 postgres | |
ENTRYPOINT ["/usr/bin/pg_dump"] |
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
#!/bin/bash | |
VERSION_NUM=1.19.0 | |
sudo curl -L https://github.com/docker/compose/releases/download/${VERSION_NUM}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose |
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
#!/bin/bash | |
# Install OpenJDK 1.7.0_79 | |
sudo apt-get install default-jdk -y | |
# Install Apache Maven 3.0.5 | |
sudo apt-get install maven -y |
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
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get install -y linux-image-generic-lts-trusty | |
wget -qO- https://get.docker.com/ | sh | |
sudo groupadd docker | |
sudo gpasswd -a ${USER} docker | |
sudo service docker restart | |
newgrp docker |
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 jboss/wildfly:8.2.0.Final | |
ENV KEYCLOAK_VERSION 1.3.1.Final | |
WORKDIR /opt/jboss/wildfly | |
RUN curl -L https://sourceforge.net/projects/keycloak/files/$KEYCLOAK_VERSION/adapters/keycloak-wf8-adapter-dist-$KEYCLOAK_VERSION.tar.gz | tar zx | |
WORKDIR /opt/jboss |
NewerOlder