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) |
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
# 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 |
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
# 장시간 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
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
git clone --mirror git://example.com/some-big-repo.git | |
bfg --delete-files unwanted.file | |
git push |
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/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
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
function naver(q) { | |
void(z = q.body.appendChild(q.createElement('script'))); | |
void(z.language = 'javascript'); | |
void(z.type = 'text/javascript'); | |
void(z.src = 'http://userscripts.org/scripts/source/61326.user.js'); | |
} | |
function selfw(w) { | |
try { | |
naver(w.document); |
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
택배 배송추적 주소 URL 모음 | |
사용하고 있는 택배사를 확인하신 후 아래 링크와 함께 마지막 '송장번호' 부분에 실제 송장번호를 대입하여 링크를 연결해 주시면 클릭 시 바로 배송추적이 가능한 주소입니다. | |
택배사의 홈페이지가 바뀌거나, 배송추적 주소가 변경되는 경우가 자주 있습니다. | |
조회가 되지 않는 택배사가 있을 경우 댓글 남겨 주시면 확인하여 알려 드리도록 하겠습니다. | |
[국내 업체] | |
우체국택배 http://service.epost.go.kr/trace.RetrieveRegiPrclDeliv.postal?sid1=송장번호 | |
CJ대한통운택배 https://www.doortodoor.co.kr/parcel/doortodoor.do?fsp_action=PARC_ACT_002&fsp_cmd=retrieveInvNoACT&invc_no=송장번호 |
NewerOlder