Skip to content

Instantly share code, notes, and snippets.

View zhuzhichao's full-sized avatar
:octocat:
Working

zhuzhichao zhuzhichao

:octocat:
Working
View GitHub Profile

CentOS 7 服务器部署 php/nginx/node/laravel

以下命令,非特别说明,都是在 root 下执行

安装工具包

yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum -y install yum-utils
@zhuzhichao
zhuzhichao / BaseResource.php
Created February 15, 2019 08:29
Laravel API 资源的匿名集合自定义处理
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\Resource;
use Illuminate\Pagination\AbstractPaginator;
class BaseResource extends Resource
{
public static $wrap = false;
@zhuzhichao
zhuzhichao / .vimrc
Last active August 29, 2015 14:26
VIM
"mapleader
let mapleader = ","
let g:mapleader = ","
"----
" Manage .vimrc
"----
"Fast reloading of the .vimrc
map <silent> <leader>ss :source ~/.vimrc<cr>
"Fast editing of .vimrc
@zhuzhichao
zhuzhichao / gist:df6bda402086295d1c4a
Created February 9, 2015 06:39
Laravel 5 IDE helper
<?php
/**
* An helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.0 on 2015-02-09.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {