// $filePath = 'etc/[02].png'; // 存在するファイル
$filePath = 'etc/yusuke.jpeg'; // 存在するファイル
// $filePath = 'etc/hoge.jpeg'; // 存在しないファイル
$connection = ftp_connect($host, 21, 10);
ftp_login($connection, $user, $password);
$listing = ftp_rawlist($connection, $filePath);
var_dump($listing);
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
# Dockerfileの編集 | |
vim Dockerfile | |
# イメージのビルド。testという名前 | |
docker build -t test . | |
# コンテナ起動して確認。hogeという名前。コンテナからexitで抜けたら、そのコンテナを自動的に消す。 | |
docker run -i -t -—rm --name hoge test:latest /bin/bash | |
# 内容を確認して、またDockerfileを編集する |
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
$ boot2docker -v | |
Boot2Docker-cli version: v1.3.1 | |
$ docker -v | |
Docker version 1.3.1, build 4e9bbfa |
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 docker boot2docker | |
$ docker -v | |
Docker version 1.3.1, build 4e9bbfa | |
$ boot2docker -v | |
Boot2Docker-cli version: v1.3.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
ln -s [元のディレクトリ] [シンボリック名] |
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
$ vim --version | |
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 12 2014 07:32:18) | |
MacOS X (unix) version | |
Included patches: 1-488 | |
Compiled by Homebrew |
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
let g:auto_save_in_insert_mode = 0 |
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
[neobundle] neobundle#rc() is deprecated function. | |
[neobundle] It will be removed in the next version. | |
[neobundle] Please use neobundle#begin()/neobundle#end() instead. | |
Press ENTER or type command to continue |
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
# コピー、選択モードのキーバインドvi風にする | |
set-window-option -g mode-keys vi | |
# クリップボードをmacと連携 | |
# http://qiita.com/upinetree/items/cd80bc7865c52091be10 | |
unbind -t vi-copy Enter | |
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy" |
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
<?php | |
require 'vendor/autoload.php'; | |
use Guzzle\Http\Client; | |
$settings = parse_ini_file('config/settings.ini'); | |
$client = new Client($settings['base_url']); | |
$client->setDefaultOption('headers', | |
array( |