Skip to content

Instantly share code, notes, and snippets.

View kayintveen's full-sized avatar
💻

Kay in t Veen kayintveen

💻
View GitHub Profile
@kayintveen
kayintveen / laravel_vhost.test
Created July 24, 2020 09:23
the nginx vhost i use for Laravel devlopment
server {
listen 80;
server_name local.PROJECTNAME.io;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name local.PROJECTNAME.io;
@kayintveen
kayintveen / my.cnf
Created July 24, 2020 09:16
My MySQL Configuration i currently use for Magento 2 development
[client]
user=root
password=root
host=localhost
[mysqld]
bind-address = 127.0.0.1
sql_mode="NO_ENGINE_SUBSTITUTION"
innodb_file_per_table=OFF
open_files_limit=999999
@kayintveen
kayintveen / limit.maxfiles.plist
Created July 24, 2020 09:08
limit.maxfiles.plist to solve FD_SETSIZE issues
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>limit.maxfiles</string>
<key>ProgramArguments</key>
<array>
<string>launchctl</string>
@kayintveen
kayintveen / README.md
Last active March 26, 2022 08:45
Local Magento2 Development on Mac OS X Catalina and Mojave. Solving FD_SETSIZE Max processes and Max file descriptior issues.

Local Magento2 development on Mac OS X Catalina

Added the document to Medium and expanded it a bit with more configuration examples:

https://medium.com/@k.veen/setup-a-local-php-development-environment-on-mac-catalina-for-laravel-and-magento-2-development-3d7f1c587d86

After a lot of headace and sturggle i went back to what i trust. no more Laravelt Valet or Valet-plus or any other wrappers and workarounds. Sure a few things like enabling and disabling Xdebug is a tad bit more work. but its matter of seconds.

Remove unused magento 2 modules via Composer.json

There are tons of unused Magento 2 modules of paid partnerships with aamzon, ebay or vertex. Lets remove that bullshit if you do not need it the proper way!

Remove unused Magento 2.2.6 modules

    "require": {
        [...]
    },
    "replace": {
@kayintveen
kayintveen / di.xml
Last active June 12, 2018 08:52
Magento2 log all sql queries
// in app/etc/di.xml
// change the following lines
<preference for="Magento\Framework\DB\LoggerInterface" type="Magento\Framework\DB\Logger\LoggerProxy"/>
// for the following:
<type name="Magento\Framework\DB\Logger\File">
<arguments>
<argument name="logAllQueries" xsi:type="boolean">true</argument>
<argument name="debugFile" xsi:type="string">log/sql.log</argument>
@kayintveen
kayintveen / setup_git_dev
Created March 21, 2017 15:08
Setup git on dev location with existing files
git init
git remote add origin $url_of_clone_source
git fetch origin
git checkout -b master --track origin/master # origin/master is clone's default
@kayintveen
kayintveen / Magento2ValetDriver.php
Created February 5, 2017 13:10
Laravel Valet Magento 2 driver that helps me daily in installing local Magento 2 development locations with Nginx and Mysql. For more info about how to use this, checkout our blog where we wrote an article about it http://www.microdesign.nl/blog/
<?php
/**
* Laravel Valet Magento 2 Driver
* Originally written bysschlein
*
* Sligthly altered by:
* Kay in 't Veen - Microdesign B.V.
* http://www.microdesign.nl
*
@kayintveen
kayintveen / install-language.sh
Created May 10, 2016 11:30
Install langyage packs for NL_NL dutch translations German de_DE and Danisch da_DK
cd <your document root>
cd ./var
/bin/rm source_nl_NL.csv
wget http://107.170.242.99/var/2.0.2/source_nl_NL.csv
/bin/rm source_de_DE.csv
wget http://107.170.242.99/var/2.0.2/source_de_DE.csv
/bin/rm source_da_DK.csv
wget http://107.170.242.99/var/2.0.2/source_da_DK.csv
cd ..
@kayintveen
kayintveen / gulpfile.js
Created January 26, 2016 10:53
Gulp with Livereload for Magento2, the only reason i wanted to use this is due to the speed of the current grunt way, i actually still use grunt for several tasks, but just the watching and generating of css files i think Gulp is the way to go. only downside is that you need to add your less files by hand. http://www.microdesign.nl
// Gulpfile for Magento 2 with livereload
// Author: Kay in 't Veen - Microdesign.nl
//
//
// Load gulp and plug-ins
var gulp = require('gulp'),
jshint = require('gulp-jshint'),
less = require('gulp-less'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),