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
library(readr) | |
library(keras) | |
library(purrr) | |
FLAGS <- flags( | |
flag_integer("vocab_size", 50000), | |
flag_integer("max_len_padding", 20), | |
flag_integer("embedding_size", 256), | |
flag_numeric("regularization", 0.0001), | |
flag_integer("seq_embedding_size", 512) |
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
# 장시간 http 연결로 인한 끊어짐을 방지키 위해 long idle time out 허용 하기 | |
# nginx proxy 에 셋팅 + ELB 의 idle timeout 수정 | |
# | |
# https://medium.com/tomincode/extending-gateway-timeouts-with-node-js-elastic-beanstalk-applications-5cb256f08f4b | |
# https://cloudavail.com/2015/10/18/allowing-long-idle-timeouts-when-using-aws-elasticbeanstalk-and-docker/ | |
# https://github.com/metabase/metabase/tree/b9533d43881090a72d97562fb112a6133cd94127/bin/aws-eb-docker | |
files: | |
"/etc/nginx/conf.d/proxy.conf": | |
mode: "000644" |
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 pymongo | |
import json | |
from pymongo import Connection | |
def connect_to_mongo(host, port, database, collection): | |
connection = Connection(host, port) | |
db = connection[database] | |
collection = db[collection] | |
return collection |
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
# you will need to alias the internal kube IPs to your loopback interface | |
# get pods with IPs | |
kubectl get pods -n kafka -o wide | |
# add aliases | |
sudo ifconfig lo0 100.101.168.109 alias | |
sudo ifconfig lo0 100.117.38.251 alias | |
sudo ifconfig lo0 100.121.158.154 alias |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
:) CREATE TABLE test.nested (EventDate Date, UserID UInt64, Attrs Nested(Key String, Value String)) ENGINE = MergeTree(EventDate, UserID, 8192) | |
CREATE TABLE test.nested | |
( | |
EventDate Date, | |
UserID UInt64, | |
Attrs Nested( | |
Key String, | |
Value String) | |
) ENGINE = MergeTree(EventDate, UserID, 8192) |
OlderNewer