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
| #!/bin/bash | |
| readonly DOCKERIZE_VERSION=v0.6.1 | |
| wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | |
| sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | |
| sudo rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz |
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
| #!/bin/bash | |
| readonly HEROKU_CLI_VERSION=v6.16.12-04b3626 | |
| wget https://cli-assets.heroku.com/heroku-cli/channels/stable/heroku-cli-linux-x64.tar.gz -O heroku.tar.gz | |
| sudo tar -xvzf heroku.tar.gz | |
| sudo mkdir -p /usr/local/lib /usr/local/bin | |
| sudo mv heroku-cli-$HEROKU_CLI_VERSION-linux-x64 /usr/local/lib/heroku | |
| sudo ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku | |
| cat > ~/.netrc << EOF |
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
| daemon off; # For Docker | |
| worker_processes <%= ENV['NGINX_WORKERS'] || 4 %>; # For Heroku | |
| load_module modules/ngx_http_geoip_module.so; # GeoIP | |
| events { | |
| worker_connections 1024; | |
| multi_accept on; | |
| use epoll; | |
| } |
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
| import React from 'react'; | |
| const Auth = props => { | |
| const password = 'anyPassword'; | |
| if (password != 'correctPassword') { | |
| return <h3>You are not authorized</h3>; | |
| } else { | |
| return props.children; | |
| } |
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 nginx:1.13.8-alpine | |
| LABEL maintainer='Keid' | |
| ENV PATH $PATH:/usr/sbin/ | |
| COPY nginx.conf /etc/nginx/nginx.conf | |
| RUN apk update |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure(2) do |config| | |
| # box | |
| config.vm.box = "centos65-x86_64-20140116" | |
| config.vm.define "dev-server" do |node| |
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 Excel = require('exceljs'); | |
| var fs = require('fs') | |
| var inputFilePath = "C:/Users/user/data-pattern.xlsx"; | |
| var outputDirPath = "./output/"; | |
| var sheetName = "data-sheet"; | |
| var startY = 5; | |
| var startX = 3; | |
| var itemNum = 3; | |
| var rowNum = 2; |
NewerOlder