Skip to content

Instantly share code, notes, and snippets.

View renatomarinho's full-sized avatar
🎯
Focusing

Renato Marinho renatomarinho

🎯
Focusing
View GitHub Profile
@renatomarinho
renatomarinho / projects-workflow.json
Created October 28, 2021 20:25
projects-workflow.json
{
"data": [
{
"id": 1,
"title": "Todo",
"description": "changed notifications to \"todo\"",
"autoarchive": null,
"slug": "issue-todo",
"status": {
"code": 0,
{
"data": [
{
"id": 1,
"title": "Todo",
"description": "changed notifications to \"todo\"",
"autoarchive": null,
"slug": "issue-todo",
"status": {
"code": 0,
<?php
return [
'enable' => env('LARAVEL_PAGE_SPEED_ENABLE', true),
'skip' => [],
];
@renatomarinho
renatomarinho / php
Created October 18, 2017 00:26
laravel-page-speed.php
<?php
return [
'enable' => env('LARAVEL_PAGE_SPEED_ENABLE', true),
];

Laravel 5 Cheat Sheet

Artisan

// Added in 5.1.11:http://laravel.com/docs/5.1/authorization#creating-policies
php artisan make:policy PostPolicy

// Displays help for a given command
@renatomarinho
renatomarinho / statuses.md
Last active April 24, 2017 13:23 — forked from vkostyukov/statuses.md
HTTP status codes used by world-famous APIs
API Status Codes
[Twitter][tw] 200, 304, 400, 401, 403, 404, 406, 410, 420, 422, 429, 500, 502, 503, 504
[Stripe][stripe] 200, 400, 401, 402, 404, 409, 429, 500, 502, 503, 504
[Github][gh] 200, 400, 422, 301, 302, 304, 307, 401, 403
[Pagerduty][pd] 200, 201, 204, 400, 401, 403, 404, 408, 500
[NewRelic Plugins][nr] 200, 400, 403, 404, 405, 413, 500, 502, 503, 503
[Etsy][etsy] 200, 201, 400, 403, 404, 500, 503
[Dropbox][db] 200, 400, 401, 403, 404, 405, 429, 503, 507
RUN echo 'alias phpunit="vendor/bin/phpunit --no-coverage"' >> ~/.bashrc
#!/usr/bin/env bash
# gist: https://gist.github.com/jwage/b1614c96ea22ccaf68b7
ROOT="/path/code/"
echo "php-cs-fixer pre commit hook start"
PHP_CS_FIXER="/usr/local/bin/php-cs-fixer"
HAS_PHP_CS_FIXER=false
atom