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 | |
# RSA暗号で復号化します | |
# 使い方 | |
# rsa_decrypt.sh -d 秘密鍵dのファイル -n 公開鍵nのファイル 暗号文となる数字 | |
# 例 | |
# rsa_decrypt.sh -d private_key_a/d.txt -n public_key/n_a.txt 16 | |
set -e |
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 | |
# RSA暗号で暗号化します | |
# 使い方 | |
# rsa_encrypt.sh -e 公開鍵eのファイル -n 公開鍵nのファイル 平文となる数字 | |
# 例 | |
# rsa_encrypt.sh -n public_key/n_a.txt -e public_key/e_a.txt 4 | |
set -e |
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
# 簡単なtmux.confの例 | |
# プレフィックスキーをCtrl+tに変更する | |
unbind-key C-b | |
set-option -g prefix C-t | |
bind-key C-t send-prefix | |
# Ctrlを押したままウィンドウの切り替えができるようにする | |
bind-key C-c new-window | |
bind-key C-n next-window |
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
" vimrcの例 | |
" 行番号を表示する | |
set number | |
" 現在のモードを表示する | |
set showmode | |
" 入力中のコマンドを表示する | |
set showcmd |
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
if which peco &> /dev/null; then | |
function peco_select_history() { | |
BUFFER=$(fc -l -n -r 1 | \ | |
peco --layout=bottom-up --query "$LBUFFER") | |
CURSOR=$#BUFFER # move cursor | |
zle -R -c # refresh | |
} | |
zle -N peco_select_history | |
bindkey '^R' peco_select_history |
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
FROM node:0.10.36 | |
MAINTAINER "Hideaki Miyake" <[email protected]> | |
RUN mkdir -p /usr/local/app | |
WORKDIR /usr/local/app | |
RUN git clone https://github.com/emanon001/drinking-water-watcher.git | |
RUN cd drinking-water-watcher && npm install | |
ENTRYPOINT cd /usr/local/app/drinking-water-watcher && npm start |
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
# これを.zshrcに書く | |
function command_not_found_handler() { | |
shift | |
ls "$@" | |
} |
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
# .zshrcに書く | |
# word-chars で指定した文字が単語の区切りとみなされる。 | |
# M-f, M-b, ^w などの動作に影響する | |
autoload -Uz select-word-style | |
select-word-style default | |
zstyle ':zle:*' word-chars ' /=;@:{}[]()<>,|.' | |
zstyle ':zle:*' word-style unspecified |
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 | |
# Description: | |
# Backlog + git-flow + WIP PR script | |
# Usage: | |
# wip-pr pj-123 | |
# | |
# Requirement: | |
# use Mac OS X |
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 _double_space_to_git() { | |
if [[ "${BUFFER}" == " " ]]; then | |
LBUFFER="git " | |
else | |
zle self-insert | |
fi | |
} | |
zle -N _double_space_to_git | |
bindkey ' ' _double_space_to_git |
NewerOlder