Skip to content

Instantly share code, notes, and snippets.

View subicura's full-sized avatar

Chungsub Kim subicura

View GitHub Profile
@subicura
subicura / snazzy-custom.vim
Created July 6, 2020 08:06
snazzy-custom.vim
" ===============================================================
" Snazzy
" Author: Connor Holyday
" ===============================================================
" Setup
set background=dark
if version > 580
hi clear
if exists("syntax_on")
@subicura
subicura / color.sh
Created July 6, 2020 06:49
shell color print
#!/bin/sh
mypad() {
printf "${text_padding+\033[${text_padding}C}"
}
mycol() {
printf "$(seq 0 7 | xargs printf "\033[${2}%sm$1")$(printf "\033[0m")"
}
@subicura
subicura / react.code-snippets
Created January 6, 2020 11:20
vscode snippet example
{
"Default React Function Component": {
"prefix": "function-component",
"body": [
"import React from 'react';",
"",
"interface I${TM_FILENAME_BASE/(^[a-z])|\\-([0-9a-z])/${1:/capitalize}${2:/capitalize}/g}Props {}",
"",
"const ${TM_FILENAME_BASE/(^[a-z])|\\-([0-9a-z])/${1:/capitalize}${2:/capitalize}/g}: React.FunctionComponent<I${TM_FILENAME_BASE/(^[a-z])|\\-([0-9a-z])/${1:/capitalize}${2:/capitalize}/g}Props> = () => {",
" return <></>;",
@subicura
subicura / extensions.json
Created January 6, 2020 11:20
vscode extensions example
{
"recommendations": [
"esbenp.prettier-vscode",
"ms-vscode.vscode-typescript-tslint-plugin"
]
}
@subicura
subicura / settings.json
Created January 6, 2020 11:18
vscode setting example
{
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.codeActionsOnSave": {
"source.fixAll.tslint": true,
"source.fixAll.eslint": true
},
"typescript.tsdk": "node_modules/typescript/lib"
}
@subicura
subicura / js-debuggin.md
Last active January 31, 2018 04:53
Javascript 디버깅 및 테스트 방법
@subicura
subicura / prometheus.yml
Created January 27, 2018 03:25
prometheus.yml
global:
scrape_interval: 30s
evaluation_interval: 30s
labels:
cluster: swarm
replica: "1"
scrape_configs:
- job_name: 'cadvisor'
@subicura
subicura / docker-prom-stack.yml
Last active January 10, 2020 22:27
docker-prom-stack.yml
version: "3"
networks:
monitoring:
services:
cadvisor:
image: google/cadvisor:${CADVISOR_VERSION:-v0.26.1}
networks:
- monitoring
@subicura
subicura / config.conf
Created January 12, 2018 10:46
neofetch config
# Neofetch config file
# https://github.com/dylanaraps/neofetch
# Speed up script by not using unicode
export LC_ALL=C
export LANG=C
myprin() {
if [ "$2" ]; then
get_$2 &>/dev/null
@subicura
subicura / prometheus.yml
Created April 16, 2017 07:36
prometheus on swarm (2)
global:
scrape_interval: 30s
evaluation_interval: 30s
external_labels:
monitor: "prometheus-swarm"
rule_files:
scrape_configs:
- job_name: 'prometheus'