MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to: Sublime Text
Make it executable with: chmod u+x Sublime\ Text
| sudo apt-get update | |
| sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
| sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' | |
| sudo apt-get install -y vim curl python-software-properties | |
| sudo add-apt-repository -y ppa:ondrej/php5 | |
| sudo apt-get update | |
| sudo apt-get install -y php5 apache2 libapache2-mod-php5 php5-curl php5-gd php5-mcrypt php5-readline mysql-server-5.5 php5-mysql git-core php5-xdebug |
| <?php | |
| class EloquenFooRepository | |
| { | |
| /** | |
| * The base eloquent model | |
| * @var Eloquent | |
| */ | |
| protected $model; |
| <?php | |
| namespace Acme\Validation\Capsule; | |
| use Illuminate\Container\Container; | |
| use Illuminate\Database\ConnectionResolver; | |
| use Illuminate\Database\ConnectionResolverInterface; | |
| use Illuminate\Database\Connectors\ConnectionFactory; | |
| use Illuminate\Filesystem\Filesystem; | |
| use Illuminate\Translation\FileLoader; |
| <?php | |
| use Illuminate\Console\Command; | |
| use Symfony\Component\Console\Input\InputOption; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| class PackagistDetailCommand extends Command { | |
| /** | |
| * The console command name. |
| require 'mina/git' | |
| # Fix the SSH password prompt problem | |
| set :term_mode, nil | |
| # Basic settings: | |
| # domain - The hostname to SSH to. | |
| # deploy_to - Path to deploy into. | |
| # repository - Git repo to clone from. (needed by mina/git) | |
| # branch - Branch name to deploy. (needed by mina/git) |
Get Git log in JSON format
git log --pretty=format:'{%n "commit": "%H",%n "abbreviated_commit": "%h",%n "tree": "%T",%n "abbreviated_tree": "%t",%n "parent": "%P",%n "abbreviated_parent": "%p",%n "refs": "%D",%n "encoding": "%e",%n "subject": "%s",%n "sanitized_subject_line": "%f",%n "body": "%b",%n "commit_notes": "%N",%n "verification_flag": "%G?",%n "signer": "%GS",%n "signer_key": "%GK",%n "author": {%n "name": "%aN",%n "email": "%aE",%n "date": "%aD"%n },%n "commiter": {%n "name": "%cN",%n "email": "%cE",%n "date": "%cD"%n }%n},'The only information that aren't fetched are:
%B: raw body (unwrapped subject and body)%GG: raw verification message from GPG for a signed commit| laravel-new() { | |
| if [ -z "$1" ]; then | |
| cat << EOF | |
| Please provide a directory name. | |
| Usage: | |
| laravel-new [directory-name] | |
| EOF | |
| return; |