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 / default.md
Created June 23, 2025 05:45 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
@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);