This file contains hidden or 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
export node1=172.17.0.2 | |
export node2=172.17.0.3 | |
export node3=172.17.0.4 | |
docker run \ | |
--name mongo_1 \ | |
--hostname="node1.example.com" \ | |
--add-host node1.example.com:${node1} \ | |
--add-host node2.example.com:${node2} \ |
This file contains hidden or 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 openjdk | |
MAINTAINER Jakub Pomykała <[email protected]> | |
ENV PATH $PATH:$JAVA_HOME/bin | |
ENV JAVA_OPTS "-server -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+OptimizeStringConcat -XX:+UseStringCache -Dsun.net.inetaddr.ttl=60" | |
ENV HEAP_SPACE "-Xms768m -Xmx1g" | |
ENV REMOTE_DEBUG "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1044" | |
ENV TIME_ZONE Europe/Warsaw | |
ENV SPRING_PROFILES_ACTIVE live |
This file contains hidden or 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 openjdk | |
MAINTAINER Jakub Pomykała <[email protected]> | |
ENV PATH $PATH:$JAVA_HOME/bin | |
ENV JAVA_OPTS "-server -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+OptimizeStringConcat -XX:+UseStringCache -Dsun.net.inetaddr.ttl=60" | |
ENV HEAP_SPACE "-Xms768m -Xmx1g" | |
ENV REMOTE_DEBUG "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1044" | |
ENV TIME_ZONE Europe/Warsaw | |
ENV SPRING_PROFILES_ACTIVE live |
This file contains hidden or 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
# first we download the list of IP ranges from CloudFlare | |
wget https://www.cloudflare.com/ips-v4 | |
# iterate over the lines in the downloaded file | |
# make sure to set `--group-id` and `--port`; more details at http://docs.aws.amazon.com/cli/latest/reference/ec2/authorize-security-group-ingress.html | |
while read p; do aws ec2 authorize-security-group-ingress --group-id sg-e0000000 --protocol tcp --port 80 --cidr $p; done< ips-v4 |
This file contains hidden or 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
onChangeShareValue = (newShareValue: number, ingredientRowIndex: number) => { | |
const { | |
values, | |
setValues | |
} = this.props; | |
const nextIngredients = [...values.ingredients]; | |
nextIngredients[ingredientRowIndex].shareAmount = newShareValue; | |
setValues({...values, ingredients: [...nextIngredients]}); | |
}; |
This file contains hidden or 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 OfferSearchConditionFactory { | |
public static Collection<Condition> create(OfferSearchFilter searchFilter) { | |
List<Condition> conditions = Lists.newArrayList(); | |
Optional<OfferSearchFilter> filter = Optional.of(searchFilter); | |
filter | |
.map(OfferSearchFilter::getUserId) |
This file contains hidden or 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
<div> | |
<form action="#" id="callbackForm" class="contact-form"> | |
<div class="form-group"> | |
<label for="email">Email</label> | |
<input type="email" required id="email" class="form-control" placeholder="" autocomplete="email" name="email" /> | |
</div> | |
<div class="form-group"> | |
<label for="name">Message</label> | |
<input id="message" type="text" class="form-control" placeholder="" name="message" /> | |
</div> |
This file contains hidden or 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 openjdk:11-jre-slim | |
LABEL maintainer="[email protected]" | |
ENV PATH $PATH:$JAVA_HOME/bin | |
ENV JAVA_OPTS "-server -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+OptimizeStringConcat -Dsun.net.inetaddr.ttl=60" | |
ENV HEAP_SPACE "-Xms512m -Xmx2g" | |
ENV REMOTE_DEBUG "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:1044" | |
ENV JMX "-Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false" | |
ENV TIME_ZONE UTC | |
ENV SPRING_PROFILES_ACTIVE live |
This file contains hidden or 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
#!/usr/bin/env bash | |
rm -rf ./build/classes/ | |
rm -rf ./build/jar/ | |
rm -rf ./build/dist/ | |
mkdir -p build/classes | |
mkdir -p build/jar | |
# compile |
This file contains hidden or 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: 0.1 | |
phases: | |
install: | |
commands: | |
# Install nodejs https://nodejs.org/en/download/package-manager/ | |
- curl -sL https://deb.nodesource.com/setup_7.x | bash - | |
- apt-get install -y nodejs | |
# Install yarn natively https://yarnpkg.com/en/docs/install#linux-tab | |
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | |
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list |