Skip to content

Instantly share code, notes, and snippets.

View datalater's full-sized avatar
🎯
Focusing

Min datalater

🎯
Focusing
View GitHub Profile
[alias]
l = "log \
--color --graph --decorate \
--date=format:'%Y-%m-%d' \
--abbrev-commit \
--pretty=format:'%C(red)%h%C(auto)%d %s %C(magenta)(%cr)%C(bold green) %an'"
squash = "!f() { \
# 인자($1)를 전달하지 않으면 경고 메시지를 출력합니다.;\n \
if [ -z \"$1\" ]; then \
@datalater
datalater / .bashrc
Created October 25, 2020 07:11
.bashrc (aws ubuntu 20.04)
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@datalater
datalater / wkhtmltopdf.sh
Created April 20, 2020 08:43 — forked from ajaxray/wkhtmltopdf.sh
Install wkhtmltopdf with Patched QT for CentOS 7 or RHEL 7.x
cd ~
yum install -y xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 openssl git-core fontconfig
wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
mv wkhtmltox/bin/wkhtmlto* /usr/bin
# Thanks to
# https://jaimegris.wordpress.com/2015/03/04/how-to-install-wkhtmltopdf-in-centos-7-0/
# https://gist.github.com/Rajeshr34/2e9b2438ff142e51c729b4b9b772680a
@datalater
datalater / login-with-github.md
Created January 9, 2020 12:01 — forked from ninanung/login-with-github.md
Github로 로그인하기!

Github로 로그인하기 feat.Vue and Node.js

1. Github로 로그인하기?

요즘들어 "~로 로그인하기" 가 많아지고 있다. 페이스북이나 구글이 대표적이고, 한국에서는 네이버도 많이 사용하며 개발자 관련 웹에서는 깃허브도 껴있는 경우가 많다. 이런 식의 다른 서비스를 통해 인증하는 방식을, OAuth 인증 방식이라고 하는 모양이다. 내가 회사 업무를 위해 사용하는 몇몇 소프트웨어도 이러한 인증을 지원하는 경우가 많다. 이 글에서는 그러한 인증을 구현하지는게 아니라 그러한 인증을 사용해 보자는 것에 목적을 둔다. 어떤 방식으로 인증하는지를 직접 사용해보고 OAuth방식 인증의 절차를 알아보는 기회도 될것이다.

2. 목표

목표
위와 같이 버튼을 누르면 Github에서 인증을 실행하고 관련 데이터를 받아오는 동작을 구현해 볼 것이다.

@datalater
datalater / curl.md
Created November 13, 2019 06:54 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@datalater
datalater / .bash_profile
Created September 19, 2019 05:53 — forked from hernamesbarbara/.bash_profile
bash_profile with terminal colors and useful aliases
#!/bin/bash
export TERM=xterm-color
export CLICOLOR=1
export GREP_OPTIONS='--color=auto'
# export LSCOLORS=Exfxcxdxbxegedabagacad
export LSCOLORS=gxfxcxdxbxegedabagacad # Dark lscolor scheme
# Don't put duplicate lines in your bash history
export HISTCONTROL=ignoredups
# increase history limit (100KB or 5K entries)
export HISTFILESIZE=100000
@datalater
datalater / vim-cheatsheet.md
Created August 27, 2019 08:05 — forked from azadkuh/vim-cheatsheet.md
vim / vimdiff cheatsheet - essential commands

Vim cheat sheet

Starting Vim

vim [file1] [file2] ...

@datalater
datalater / vim-commands-taught-by-johngrib.js
Created July 30, 2019 01:09
vim-commands-taught-by-johngrib
function test0() {
console.log(1234);
}
function test1() {
}
function test1() {
}
function test1() {
@datalater
datalater / .vim-colors-jellybeans.vim
Last active August 8, 2019 05:06
.vimrc ver.20190808 (파일명에 있는 하이픈은 슬래시로 바꾼다)
" Vim color file
"
" " __ _ _ _ "
" " \ \ ___| | |_ _| |__ ___ __ _ _ __ ___ "
" " \ \/ _ \ | | | | | _ \ / _ \/ _ | _ \/ __| "
" " /\_/ / __/ | | |_| | |_| | __/ |_| | | | \__ \ "
" " \___/ \___|_|_|\__ |____/ \___|\____|_| |_|___/ "
" " \___/ "
"
" "A colorful, dark color scheme for Vim."
@datalater
datalater / .bashrc
Last active July 19, 2019 07:09
dot files @ 2013-late-MacPro
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
. ~/git-completion.bash
. ~/git-prompt.sh
# colors
CYAN='\e[0;36m\]'
L_CYAN='\e[38;5;38m'
L_GREEN='\e[38;5;48m'
MAGENTA='\e[38;5;213m'
COLOR_END='\[\033[0m\]'