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
/* | |
Erica Sadun, http://ericasadun.com | |
Cross Platform Defines | |
Apple Platforms Only | |
Will update to #if canImport() when available | |
*/ |
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 | |
RUN apt-get update && apt-get -y upgrade && apt-get install -y git build-essential gcc bc cmake mc nano unzip | |
RUN mkdir /home/endor && mkdir /opt/pol | |
RUN git clone https://github.com/polserver/polserver.git /root/polserver | |
WORKDIR /root/polserver/lib |
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
server { | |
listen 80; | |
server_name your-domain.com; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
server_name your-domain.com; |
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
class Movie { | |
String name | |
URL url | |
} | |
def downloads = new File('downloads') | |
downloads.mkdirs() | |
"http://portal.regiojet.cz/files/movies/".toURL().text.findAll(~/(?<=href=")([\S^"]*)(?=")/) | |
.parallelStream() |
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
File base = new File('<INSERT BASE DIR HERE>') | |
File data = new File(base, 'data') | |
File scripts = new File(base, 'scripts') | |
def isDone = { String name -> | |
return data.list().find { it == "${name}.csv.processing.imported"} != null | |
} |
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 | |
function install_build_tools { | |
sudo apt-get install git | |
sudo apt-get install libasound2-dev | |
sudo apt-get install build-essential | |
sudo apt-get install make | |
sudo apt-get install autoconf | |
sudo apt-get install libtool |