Skip to content

Instantly share code, notes, and snippets.

Working from home

Julien Bourdeau julienbourdeau

Working from home
View GitHub Profile
julienbourdeau / boilerplate.html
Last active Oct 4, 2021
Best HTML boilerplate from @mmatuzo
View boilerplate.html
<!DOCTYPE html>
<html lang="en" class="no-js">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Unique page title - My Site</title>
<script type="module">
julienbourdeau /
Created Jan 14, 2021
New jetstream application
laravel new secret-project
composer require laravel/jetstream
php artisan jetstream:install livewire --teams
composer require barryvdh/laravel-debugbar --dev
julienbourdeau /
Created Nov 14, 2020
Rebuild assets and deploy on Laravel Forge
# function e_header() { printf "\n${yellow}========== %s ==========${reset}\n" "$@" }
# function e_arrow() { printf "➜ $@\n" }
# TODO: Check if current branch is `master`
e_header "Rebuilding assets"
julienbourdeau / CreateUserCommand.php
Created Jun 28, 2020
Laravel Create User Command
View CreateUserCommand.php
namespace App\Console\Commands\Dev;
use App\User;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
class CreateAdminUserCommand extends Command
julienbourdeau / .php_cs
Last active Nov 8, 2020
Minimalist PHP CS Fixer config for Laravel
View .php_cs
$finder = PhpCsFixer\Finder::create()
$rulesToDisable = [
julienbourdeau / webpack.mix.js
Created Apr 20, 2020
Laravel Mix with multiple Tailwind config and PurgeCSS (separate Admin dashboard and Front app)
View webpack.mix.js
const mix = require('laravel-mix');
const tailwindcss = require('tailwindcss');
const rootPath = Mix.paths.root.bind(Mix.paths);
const tailwindPlugins = function(configFile, paths) {
const pluginList = [tailwindcss(configFile)];
if (mix.inProduction()) {
View gist:fbd80a0558b6af59f4e92f6613bb1f6a
Bundler could not find compatible versions for gem "actionmailer":
In Gemfile:
devise_invitable was resolved to 2.0.1, which depends on
actionmailer (>= 5.0)
rails (= was resolved to, which depends on
actionmailer (=
Bundler could not find compatible versions for gem "activemodel":
In Gemfile: