Skip to content

Instantly share code, notes, and snippets.

Avatar

Claudio Pereira cpereiraweb

  • Rio de Janeiro, Brazil
View GitHub Profile
View composer.json
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.0.2",
"bezhansalleh/filament-shield": "^2.3",
"filament/filament": "^2.0",
View Aliases
# -------------------------------------------------------------------------------------------
# ALIASES
# -------------------------------------------------------------------------------------------
# Brew
alias bsa='brew services start'
alias bs='brew services'
alias bso='brew services stop'
# Git
@cpereiraweb
cpereiraweb / VSCode
Created Mar 10, 2022 — forked from r2luna/VSCode
VSCode Settings
View VSCode
alefragnani.project-manager
amiralizadeh9480.laravel-extra-intellisense
antfu.icons-carbon
austenc.laravel-blade-spacer
bmewburn.vscode-intelephense-client
bradlc.vscode-tailwindcss
calebporzio.better-keybindings
calebporzio.better-phpunit
ceciljacob.code-plus-theme
cjhowe7.laravel-blade
@cpereiraweb
cpereiraweb / deploy.sh
Created Feb 14, 2022 — forked from cagartner/deploy.sh
Laravel Push deploy Github actions example
View deploy.sh
#!/bin/sh
set -e
vendor/bin/phpunit
(git push) || true
git checkout production
git merge master
@cpereiraweb
cpereiraweb / AppNavigationMenu.php
Created Jun 11, 2021 — forked from rosswintle/AppNavigationMenu.php
Laravel Jetstream Livewire Navigation Menu
View AppNavigationMenu.php
<?php
/**
* This class extends the base NavigationClass provided by Jetstream.
* Note that the base class includes the navigation-menu.blade.php
*/
namespace App\Http\Livewire;
class AppNavigationMenu extends \Laravel\Jetstream\Http\Livewire\NavigationMenu
{
View Inflector.php
<?php
namespace Laravel\Support\Services;
class Inflector
{
/**
* @var array
*/
public static $rules = [
View docker.compose.yml
####
# ATENTION:
# Replace all occurences of sandbox with your project's name
####
# v2 syntax
version: '2'
# Named volumes
volumes:
@cpereiraweb
cpereiraweb / ubuntu-install-nodejs-npm.sh
Created Aug 7, 2017 — forked from kolosek/ubuntu-install-nodejs-npm.sh
Install node.js version 6.x Ubuntu 16.04
View ubuntu-install-nodejs-npm.sh
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
echo "Installing NodeJS 6.x"
sudo apt-get install nodejs
echo "Install webpack globally"
sudo npm install webpack -g
echo "Install nightwatch globally"
sudo npm install webpack -g
@cpereiraweb
cpereiraweb / .ambientum_rc
Last active Aug 4, 2017
npm-debug.log problemático
View .ambientum_rc
# Where the ambientum cache will live
A_BASE="$HOME/AppData/Local/ambientum"
# Define specific cache directories
A_CONFIG="$A_BASE"/.config
A_CACHE="$A_BASE"/.cache
A_LOCAL="$A_BASE"/.local
A_SSH="$HOME/.ssh"
A_COMPOSER="$A_BASE"/.composer
@cpereiraweb
cpereiraweb / social_data.skema
Created Jul 24, 2017
Social Data collected data
View social_data.skema
[{"name":"social_data","color":"Red","position":{"x":100,"y":100},"increment":true,"timestamp":false,"softdelete":false,"column":[{"name":"user_id","type":"integer","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":true,"in":false,"un":false,"fillable":true,"guarded":false,"visible":false,"hidden":false,"colid":"c31","order":0},{"name":"email","type":"string","length":"255","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":true,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c39","order":1},{"name":"social_network","type":"string","length":"100","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":true,"guarded":false,"visible":false,"hidden":false,"colid":"c47","order":2},{"name":"meta_data","type":"text","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":true,"guarded":false,"visibl