bootstrap/app.php
+require_once __DIR__.'/../app/helpers.php';
require_once __DIR__.'/../vendor/autoload.php';
app/helpers.php
<?php
bootstrap/app.php
+require_once __DIR__.'/../app/helpers.php';
require_once __DIR__.'/../vendor/autoload.php';
app/helpers.php
<?php
/usr/local/share/jre1.8.0_121/bin/java -server \ | |
-d64 \ | |
-Xmx14G \ | |
-XX:NewRatio=3 -XX:+UseThreadPriorities \ | |
-XX:SoftRefLRUPolicyMSPerMB=2048 \ | |
-XX:CMSInitiatingOccupancyFraction=90 \ | |
-XX:MaxGCPauseMillis=50 \ | |
-XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled \ | |
-XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -XX:+UseBiasedLocking \ | |
-XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 \ |
I hereby claim:
To claim this, I am signing this object:
# 顯示有品質的寶石 | |
Show | |
Class Gem | |
Quality > 0 | |
SetBorderColor 128 128 255 | |
# 五連以上 | |
Show | |
LinkedSockets >= 5 | |
SetBackgroundColor 0 128 0 | |
# 貨幣 |
<?php | |
public function getTableColumns() | |
{ | |
return $this->getConnection()->getSchemaBuilder()->getColumnListing($this->getTable()); | |
} |
The solution above for 5.2 should still work. In 5.5+ you just need to change bootstrap/autoload.php to vendor/autoload.php. | |
<?php | |
require '/path/to/laravel/vendor/autoload.php'; | |
$app = require_once '/path/to/laravel/bootstrap/app.php'; | |
$app->make('Illuminate\Contracts\Http\Kernel') | |
->handle(Illuminate\Http\Request::capture()); |
This guide is a fork from this gist. I've added minor adjustments to customise these rules to forward connections from an outsite interface like en0.
Since Mavericks stopped using the deprecated ipfw
(as of Mountain Lion), we'll be using pf
to allow port forwarding.
Create an anchor file under /etc/pf.anchors/com.jenkins
with your redirection rule like:
@extends('admin.layout') | |
@section('content') | |
<h1 class="page-header">新增文章</h1> | |
@if (count($errors->all()) > 0 ) | |
<div class="alert alert-danger" role="alert"> | |
@foreach ($errors->all() as $error) | |
<p>{{ $error }}</p> | |
@endforeach | |
</div> | |
@endif |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |