Skip to content

Instantly share code, notes, and snippets.

View zxshinxz's full-sized avatar

Andy (Yoon Yong) Shin zxshinxz

View GitHub Profile
@zxshinxz
zxshinxz / nested.txt
Created April 29, 2020 09:01 — forked from alexey-milovidov/nested.txt
Example of Nested data type in ClickHouse.
:) 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)
@zxshinxz
zxshinxz / shrink_embeddings.ipynb
Created March 4, 2020 12:24 — forked from generall/shrink_embeddings.ipynb
Shrinking Fasttext embeddings
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zxshinxz
zxshinxz / gist:69035e877b18def1efe4902cc9626092
Created April 17, 2019 02:35 — forked from tzapu/gist:f47924daae9d64b65fdfaf92b64f587c
connecting to a kubernets hosted kafka cluster from macOS
# 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
@zxshinxz
zxshinxz / unique_hash_objects.py
Created November 26, 2018 01:27 — forked from 9b/unique_hash_objects.py
Goes through MongoDB store and checks if any object hash is duplicated
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
@zxshinxz
zxshinxz / 00_nginx.config
Created September 13, 2018 05:31 — forked from 480/00_nginx.config
자주 쓰는 ebextensions 설정
# 장시간 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"
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)
@zxshinxz
zxshinxz / gist:4f9218f06880ef6ac8300fa1d465ccd3
Last active April 24, 2017 08:34
remove unwanted history from git
git clone --mirror git://example.com/some-big-repo.git
bfg --delete-files unwanted.file
git push
@zxshinxz
zxshinxz / osx-for-hackers.sh
Created April 16, 2017 12:41 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/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
@zxshinxz
zxshinxz / gist:225731dd820ea660590c184df66df8a6
Created December 5, 2016 14:49
Right Click Enable script
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);
택배 배송추적 주소 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=송장번호