Skip to content

Instantly share code, notes, and snippets.

View gpressutto5's full-sized avatar

Guilherme Pressutto gpressutto5

  • Curitiba, Brazil
View GitHub Profile
@calebporzio
calebporzio / tinker_helper.php
Created January 30, 2019 23:56
A quick, memorable way to initiate an "artisan tinker" session and play with variables.
<?php
function tinker(...$args) {
// Because there is no way of knowing what variable names
// the caller of this function used with the php run-time,
// we have to get clever. My solution is to peek at the
// stack trace, open up the file that called "tinker()"
// and parse out any variable names, so I can load
// them in the tinker shell and preserve their names.
@cbetoni
cbetoni / index.html
Created January 26, 2017 17:01
Template para inicio de HTML5
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<!-- Description Até 140 caracteres -->
<meta name="description" content="Description">
<!-- Favicon -->
<link rel="icon" href="img/icon/favicon.ico" type="image/ico" sizes="16x16">
@branneman
branneman / count-lint-errors.js
Last active July 31, 2023 17:59
Group-By-Count ESLint errors
// :: (String, String) => String
const spawn = require('child_process').spawnSync;
// :: String => [String]
const getRules = raw => raw
.split('\n')
.map(line => line.trim())
.filter(line => !!line)
.filter(line => line[0] !== '/' && line[0] !== '✖')
.map(line => line.match(/[a-z-]+$/)[0]);
@tinogomes
tinogomes / gist:7ca162a0110be69a4a64
Last active July 14, 2023 22:12
Frases - Porta dos Fundos - Mundo dos Negócios

https://www.youtube.com/watch?v=cPbl26Fw-dk

  • Quer brincar de Eike Bastista nessa porra!
  • Matar um leão por dia.
  • Faca nos dentes
  • Sangue no olho
  • É matar ou morrer
  • Dando muque em macaco de gaveta
  • É largar mato na caçamba
  • Jogar terra na boca de carrapato
@JSila
JSila / aliases-cl.sh
Created April 14, 2014 22:46
Bash aliases for most used commands - composer and laravel
alias c="composer"
alias ccp="composer create-project --prefer-dist"
alias csu="sudo composer self-update"
alias cu="composer update"
alias ci="composer install"
alias cr="composer require"
alias csh="composer show"
alias cse="composer search"
alias cda="composer dump-autoload -o"