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
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
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
var list= document.getElementsByClassName("gradeX"); | |
for (var i = 0; i < list.length; i++) { | |
var innerList = list[i].getElementsByClassName("center") | |
for (var j = 0; j < innerList.length; j++){ | |
var avaiableSeats = innerList[0].innerText | |
var rowElements = list[i].getElementsByTagName("td") | |
var course = rowElements[0].innerText | |
if(avaiableSeats > 0 && course === "JZL100473C"){ | |
var code = rowElements[1].innerText | |
var time = rowElements[3].innerText |
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
// ==UserScript== | |
// @name wykop voice commander/inteligentny wypok xD ALPHA/DEMO | |
// @namespace pomidor.com | |
// @version 0.1 | |
// @description sterowanie wykopem glosem | |
// @author KwadratowyPomidor2 | |
// @require https://code.jquery.com/jquery-1.12.4.min.js | |
// @match https://www.wykop.pl/* | |
// @grant GM_setValue | |
// @grant GM_getValue |
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
class GoldenHour { | |
var locationName: String? | |
var start: Date? | |
var end: Date? | |
var latitude: CLLocationDegrees? | |
var longitude: CLLocationDegrees? | |
} |
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
{ | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"parser": "babel-eslint", | |
"extends": "eslint-config-airbnb", | |
"parserOptions": { | |
"ecmaVersion": 8, | |
"ecmaFeatures": { |
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
{ | |
"env": { | |
"browser": 1 | |
}, | |
"globals": { | |
"exampleGlobalVariable": true | |
}, | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true |