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
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 |
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
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 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 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 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 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 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
docker pull mysql | |
docker run --name mysql -e MYSQL_ROOT_PASSWORD=mysql -d -p 3306:3306 mysql | |
# 接続確認 passwordはmysqlになります。 | |
mysql -h $(boot2docker ip) -uroot -p |
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
// File::delete()メソッド: | |
File::shouldReceive('delete')->andReturn(true); | |
File::makePartial(); |
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
composer create-project laravel/laravel la5test --prefer-dist |
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
brew install ctags |
NewerOlder