| Title | Description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc or ~/.zshrc | |
... | |
############ for aws credentials set: made by schan V1.2.0 ########### | |
DEFAULT_PF="your-aws-profile" | |
PF="" | |
aws_profile() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// =============== | |
// === 개정 이력 === | |
// =============== | |
// 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 함수를 순수 함수로 개선 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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"/..)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
#local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
# | |
# Oh My Zsh! theme | |
# | |
setopt promptsubst | |
autoload -U add-zsh-hook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
} |
NewerOlder