Skip to content

Instantly share code, notes, and snippets.

View schan90's full-sized avatar

SCHAN90 schan90

View GitHub Profile
@schan90
schan90 / aws-key-switch.rc.conf
Last active November 11, 2022 07:30
aws-key-switch.rc.conf
# ~/.bashrc or ~/.zshrc
...
############ for aws credentials set: made by schan V1.2.0 ###########
DEFAULT_PF="your-aws-profile"
PF=""
aws_profile()
@schan90
schan90 / CodeSpitz74_Day03_Report
Created February 1, 2018 08:37 — forked from expert0226/CodeSpitz74_Day03_Report.js
코드스파츠74 - 3일차 과제 제출: HTML Parser 에 Attribute 해석 기능 추가
// ===============
// === 개정 이력 ===
// ===============
// 2018-01-25 10:07
// 1. IIFE(Immediately Invoked Function Expression) 능력을 과시했으니, 이제 테스트 코드를 주석 걸기 쉽게하기 위해 명명된 함수로 변경
// 2018-01-24 20:07
// 1. textNode 함수를 순수 함수로 개선
// 2018-01-24 19:30
// 1. Attributes 를 children 에서 분리하여 별도의 배열로 저장
// 2. attrNode 함수를 순수 함수로 개선
@schan90
schan90 / reinvent-2017-youtube.md
Created December 15, 2017 08:43 — forked from stevenringo/reinvent-2017-youtube.md
Links to YouTube recordings of AWS re:Invent 2017 sessions

| Title | Description

@schan90
schan90 / Ramda-Lodash.js
Last active September 27, 2017 17:58 — forked from vvgomes/foo.js
Ramda vs Lodash
var _ = require("lodash");
var R = require("ramda");
var companies = [
{ name: "tw", since: 1993 },
{ name: "pucrs", since: 1930 },
{ name: "tw br", since: 2009 }
];
var r1 = _(companies).chain()
@schan90
schan90 / git_hook_repo_name_to_aws_codecommit.sh
Created September 23, 2017 10:21 — forked from kimisme9386/git_hook_repo_name_to_aws_codecommit.sh
git hook post recevice for sync to aws codecommit
#!/bin/bash
AWS_CODECOMMIT_URL="git-codecommit.us-east-1.amazonaws.com/v1/repos"
if [ $(git rev-parse --is-bare-repository) = true ]
then
REPOSITORY_BASENAME=$(basename "$PWD")
REPOSITORY_DIRNAME=$(basename $(dirname "$PWD"))
else
REPOSITORY_BASENAME=$(basename $(readlink -nf "$PWD"/..))
@schan90
schan90 / cleanup-codecommit-repos.sh
Created September 23, 2017 09:55 — forked from paulkearney/cleanup-codecommit-repos.sh
Migrating from GitHub to AWS CodeCommit
while read r; do
echo $r
aws codecommit delete-repository --repository-name $r --region us-east-1
done < ~/dev/utility-scripts/aws/codecommit/repos.txt
@schan90
schan90 / promp_paradox_setup
Created September 22, 2017 14:37
My custom paradox theme prezto. Add nvm and timestamp in RPROMPT. Inspired by https://gist.github.com/rjorgenson/83094662ace4d3b82b95/
#
# A two-line, Powerline-inspired theme that displays contextual information.
#
# This theme requires a patched Powerline font, get them from
# https://github.com/Lokaltog/powerline-fonts.
#
# Authors:
# Isaac Wolkerstorfer <[email protected]>
# Jeff Sandberg <[email protected]>
# Sorin Ionescu <[email protected]>
@schan90
schan90 / albogdano.zsh-theme
Created September 22, 2017 09:34 — forked from albogdano/albogdano.zsh-theme
My zsh themes
#!/usr/bin/env zsh
#local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
#
# Oh My Zsh! theme
#
setopt promptsubst
autoload -U add-zsh-hook
@schan90
schan90 / git_prompt_info.zsh
Created September 22, 2017 09:32 — forked from msabramo/git_prompt_info.zsh
The slowness of my zsh prompt when in a git-svn managed directory was killing me. I improved it by removing the git status stuff that slows it down...
function git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX"
}