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
$ composer clearcache | |
Clearing cache (cache-dir): /Users/matsuo/.composer/cache | |
Clearing cache (cache-files-dir): /Users/matsuo/.composer/cache/files | |
Clearing cache (cache-repo-dir): /Users/matsuo/.composer/cache/repo | |
Cache directory does not exist (cache-vcs-dir): | |
All caches cleared. | |
$ composer create-project laravel/laravel test | |
Installing laravel/laravel (v5.3.0) | |
- Installing laravel/laravel (v5.3.0) |
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
<?php | |
namespace App\Console\Commands; | |
use App\Post; | |
use Carbon\Carbon; | |
use Faker\Factory; | |
use Illuminate\Console\Command; | |
class MakePost extends Command |
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
<?php | |
namespace App\Console\Commands; | |
use App\Post; | |
use Illuminate\Console\Command; | |
class FetchPost extends Command | |
{ | |
/** |
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
<?php | |
use {{namespace}}User; | |
use Illuminate\Foundation\Testing\DatabaseMigrations; | |
use Illuminate\Foundation\Testing\DatabaseTransactions; | |
class AuthTest extends TestCase | |
{ | |
use DatabaseMigrations; |
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
- name: add repository 'epel' | |
command: rpm -ih http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm creates=/etc/yum.repos.d/epel.repo | |
tags: | |
- common | |
- name: download rpm | |
get_url: url=https://www.rabbitmq.com/releases/rabbitmq-server/v3.3.0/rabbitmq-server-3.3.0-1.noarch.rpm dest=/home/deploy/rabbitmq-server-3.3.0-1.noarch.rpm | |
tags: | |
- rabbitmq | |
- name: install RabbitMQ RPM |
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
{ | |
"changed":false, | |
"failed":true, | |
"invocation":{ | |
"module_args":{ | |
"conf_file":null, | |
"disable_gpg_check":false, | |
"disablerepo":null, | |
"enablerepo":null, | |
"exclude":null, |
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
@extends('layouts.default') | |
@section('content') | |
<h1>Hello</h1> | |
@stop | |
@section('button') | |
<button class="btn btn-primary">bar</button> | |
@show |
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
<!doctype html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>@yield('title', 'default title')</title> | |
<link rel="stylesheet" href="{{ asset('/css/bootstrap.min.css') }}"> | |
<link rel="stylesheet" href="{{ asset('/css/bootstrap.theme.min.css') }}"> | |
@section('css') | |
@show | |
</head> |
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
<?php | |
require 'recipe/common.php'; | |
// Laravel shared dirs | |
set('shared_dirs', [ | |
'storage/app', | |
'storage/framework/cache', | |
'storage/framework/sessions', | |
'storage/framework/views', |
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
### Sample Settings | |
# aliases | |
# in this example you can open extensions page by the command ':ext' | |
# and Chrome's option page by the command ':option' | |
alias ext TabOpenNew chrome://extensions/ | |
alias option TabOpenNew chrome://settings/browser | |
alias downloads TabOpenNew chrome://downloads | |
alias history TabOpenNew chrome://history |