Skip to content

Instantly share code, notes, and snippets.

View taylorotwell's full-sized avatar
🏄‍♂️
Making developers happy.

Taylor Otwell taylorotwell

🏄‍♂️
Making developers happy.
View GitHub Profile
Verifying my Blockstack ID is secured with the address 1Jhv6ajrZzJZSBTT2QWwXuGc1dcYrHM1K3 https://explorer.blockstack.org/address/1Jhv6ajrZzJZSBTT2QWwXuGc1dcYrHM1K3
@taylorotwell
taylorotwell / weather.sh
Last active August 27, 2019 13:40
Weather CLI
alias weather='curl -s wttr.in | sed -n "1,7p"'
@taylorotwell
taylorotwell / alert.php
Created November 11, 2016 22:39
Components And Slots
<div class="alert">
{{ $slot }}
</div>
@taylorotwell
taylorotwell / gist:68f614deb9538f2e30108c2698266fda
Last active May 28, 2020 08:41
ADR out of the box for Brandon
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
Forge Ubuntu 16.04 servers are running Apt updates painfully slow in some European and Asian regions.
For example, 1GB servers in the Linode Singapore region take almost one hour to provision and many things
time out completely because Apt seems to be running so slow. This problem did not seem to be present on
Ubuntu 14.04 and does not seem to affect American regions.
Reward: SOLVED!
@taylorotwell
taylorotwell / tenant-middleware
Created December 1, 2015 03:07
Magical tenant middleware thing
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Auth\Access\AuthorizationException;
class VerifyTenants
{
/**
@taylorotwell
taylorotwell / global-homestead.sh
Created September 23, 2015 21:40
Global Homestead Without Composer
alias homestead='function __homestead() { (cd ~/Documents/Code/Homestead && vagrant $*); unset -f __homestead; }; __homestead'
# Usage
homestead up
homestead halt
# etc...
@taylorotwell
taylorotwell / gist:db67dd369b00022850b4
Last active August 6, 2024 11:22
Mac Yosemite Dev Machine Setup

XCode

  • Install XCode from App Store.
  • Open XCode and agree to terms and conditions.

XCode CLI Tools

  • xcode-select --install

Install Homebrew