Skip to content

Instantly share code, notes, and snippets.

View meeglos's full-sized avatar

meeglos

  • Spain
  • 16:20 (UTC +02:00)
View GitHub Profile
@meeglos
meeglos / .prettierrc
Created May 14, 2023 21:52
Prettier configuration file
{
"singleAttributePerLine": true,
"useTabs": false,
"tabWidth": 4,
"singleQuote": true,
"jsxSingleQuote": true,
"arrowParens": "avoid"
}
@meeglos
meeglos / .eslintrc.cjs
Created May 14, 2023 21:50
eslint file config
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'standard',
'eslint-config-prettier',
@meeglos
meeglos / Fix PHP validation executable
Created September 28, 2021 16:30
VS Code PHP validation executable Laravel Sail
- In VS Code settings, search for settings.json:
"php.validate.executablePath": "/usr/local/bin/php"
- Edit the file:
sudo nano /usr/local/bin/php
Paste the code:
path=$(printf '%s\n' "${PWD##*/}")
command="docker exec ${path}_laravel.test_1 php "$@""
echo "Running php on docker ${path}_laravel.test_1"
$command
@meeglos
meeglos / gulpfile.js
Created March 10, 2020 01:56
Gulpfile for html includes
const gulp = require('gulp');
const fileinclude = require('gulp-file-include');
gulp.task('fileinclude', async function() {
gulp.src([
'src/index.html',
'src/about.html'
])
.pipe(fileinclude({
@meeglos
meeglos / GIT.md
Created July 7, 2018 21:22 — forked from dasdo/GIT.md
Lista de Comandos en GIT

Configuración Básica

Configurar Nombre que salen en los commits

	git config --global user.name "dasdo"

Configurar Email

	git config --global user.email [email protected]