This file contains hidden or 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/sh | |
| ## http://qiita.com/speg03/items/4b8573686e7bbf218b61 | |
| ## 上記から取得 | |
| if [ $# != 1 ]; then | |
| echo "Usage: $0 DOCKER_IMAGE" | |
| exit 1 | |
| fi | |
| cat <<EOF | docker build -t $1 - |
This file contains hidden or 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/sh | |
| ## http://qiita.com/speg03/items/4b8573686e7bbf218b61 | |
| ## 上記から取得 | |
| if [ $# != 1 ]; then | |
| echo "Usage: $0 DOCKER_IMAGE" | |
| exit 1 | |
| fi | |
| cat <<EOF | docker build -t $1 - |
This file contains hidden or 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
| GET /*path/ controllers.Application.untrail(path: String) |
This file contains hidden or 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
| # mysql --------------------------------------------- | |
| datastore: | |
| image: busybox | |
| volumes: | |
| - /opt/datastore:/var/lib/mysql | |
| container_name: mysql-datastore | |
| mysql: | |
| image: mysql | |
| environment: | |
| MYSQL_ROOT_PASSWORD: password |
This file contains hidden or 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
| my-open-alias() { | |
| if [ -z "$RBUFFER" ] ; then | |
| my-open-alias-aux | |
| else | |
| zle end-of-line | |
| fi | |
| } | |
| my-open-alias-aux() { | |
| str=${LBUFFER%% } |
This file contains hidden or 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
| alias tcl="cat ~/.todo_history|nl" | |
| alias tl="cat ~/.todo|nl" | |
| alias te="vim ~/.todo" | |
| alias td="remove-todo" | |
| function remove-todo() { | |
| TARGET=$(tl|peco) | |
| NUM=$(echo $TARGET|cut -f1|tr -d ' ') | |
| cat ~/.todo|sed -e "${NUM}d" >~/.todo_tmp | |
| rm ~/.todo |
OlderNewer