A collection of developer scripts for macOS.
Polls GitHub for pull requests you authored or are assigned to, and fires native macOS notifications when something changes — approvals, review requests, merges, closes, and new review activity.
| <?php | |
| // before | |
| $registry = [ | |
| 'tests/BasicClass.php' => [ | |
| 'TestCase', | |
| ], | |
| 'tests/ComplexClass.php' => [ | |
| 'TestCase', | |
| 'RefreshDatabase', |
| <?php | |
| namespace App\Providers; | |
| use Facebook\WebDriver\Chrome\ChromeOptions; | |
| use Facebook\WebDriver\Remote\DesiredCapabilities; | |
| use Facebook\WebDriver\Remote\RemoteWebDriver; | |
| use Illuminate\Support\ServiceProvider; | |
| use Laravel\Dusk\Browser; | |
| use Laravel\Dusk\Chrome\ChromeProcess; |
| <?php | |
| // | |
| // Say the project is stored in the path /var/html then it could be used like so: | |
| // | |
| // dynamic_base_path('@storage/app/somefile.txt'); // returns /var/html/storage/ | |
| // | |
| // dynamic_base_path('/etc/somefile.txt'); // returns /etc/somefile.txt | |
| // | |
| // Use this in your config files when you want relative paths for your local |
| <?php | |
| \Illuminate\Support\Collection::macro('prioritiseUnique', function ($unique, $proritise) { | |
| return $this->sortByDesc($proritise) | |
| ->unique($unique) | |
| ->values(); | |
| }); |
| <?php | |
| /** | |
| * Config for PHP-CS-Fixer 2.10.0 | |
| */ | |
| $rules = [ | |
| '@PSR2' => true, | |
| '@PSR1' => true, |
| ### Keybase proof | |
| I hereby claim: | |
| * I am peterfox on github. | |
| * I am peterfox (https://keybase.io/peterfox) on keybase. | |
| * I have a public key whose fingerprint is 15A7 F417 AF0D 2AC5 51B2 472E 35CC 582B 80CC F167 | |
| To claim this, I am signing this object: |
| <?php | |
| namespace AppBundle\Controller; | |
| use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\HttpFoundation\Response; | |
| final class TermsPageController | |
| { |
| <?php | |
| namespace App; | |
| use Illuminate\Database\Eloquent\Model; | |
| class Task extends Model | |
| { | |
| protected $fillable = [ | |
| 'task' |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| # config.vm.define "database" do |database| | |
| # database.vm.box = "ubuntu-trusty-server-amd64" |