Skip to content

Instantly share code, notes, and snippets.

@artmouse
artmouse / Add_WindowsDefender_Exclusions.ps1
Created October 15, 2023 14:05 — forked from dkorobtsov/Add_WindowsDefender_Exclusions.ps1
PowerShell script to add Windows Defender exclusions for WSL2 and JetBrains IDE performance issues
# PowerShell script to add Windows Defender exclusions for WSL2 and JetBrains IDE performance issues
#
# For context please read this thread:
# https://github.com/microsoft/WSL/issues/8995
#
# How to use?
# - Save the Script: Open a text editor like Notepad and paste the PowerShell script into it.
# - Save the file with a .ps1 extension, for example, Add_WindowsDefender_Exclusions.ps1.
# - Run PowerShell as Administrator: Search for "PowerShell" in the Start menu, right-click on it, and choose "Run as administrator".
# - Navigate to the Script's Location: Use the cd command to navigate to the directory where you saved the .ps1 file.
@artmouse
artmouse / vendor-modules-zip.md
Created July 26, 2023 21:21 — forked from lnoering/vendor-modules-zip.md
Zip All modules from vendor

Zip all modules to install by artifact

Steps

Go to the vendor_name folder.

  • Ex.: cd vendor/amasty

Create the file at that folder.

  • Ex.: zip-all.sh
@artmouse
artmouse / Testing in Magento 2.md
Created July 26, 2023 21:17 — forked from ProcessEight/Testing in Magento 2.md
M2: Notes on setting up PHPUnit and writing/troubleshooting tests in Magento 2
@artmouse
artmouse / magento-1-2-migration-update-urls
Created June 20, 2023 21:28 — forked from collymore/magento-1-2-migration-update-urls
Replace Magento 2 url_key with correct value from Magento 1
<?php
ini_set('max_execution_time', 0);
ini_set('display_errors', 1);
require __DIR__ . '/../app/bootstrap.php';
use \Magento\Framework\App\Bootstrap;
$bootstrap = Bootstrap::create(BP, $_SERVER);
$objectManager = $bootstrap->getObjectManager();
$state = $objectManager->get('\Magento\Framework\App\State');
@artmouse
artmouse / PlayStationBIOSFilesNAEUJP.md
Created May 15, 2023 17:37 — forked from juanbrujo/PlayStationBIOSFilesNAEUJP.md
Files for PlayStation BIOS Files NA-EU-JP
@artmouse
artmouse / .htaccess
Created May 12, 2023 18:52 — forked from seoagentur-hamburg/.htaccess
UPDATE 2022/10: Perfect .htaccess file for highspeed and security. You can use it for every WordPress-Website without problems. Highspeed and Security - testet on hundreds of Websites. If you are using a WordPress Multisite, change the last part of this file.
########################################################################
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2.0.6 - 10/2022
# ----------------------------------------------------------------------
# @Author: Andreas Hecht
# @Author URI: https://seoagentur-hamburg.com
# License: GNU General Public License v2 or later
# License URI: http://www.gnu.org/licenses/gpl-2.0.html
########################################################################
@artmouse
artmouse / checklist.md
Created April 16, 2023 22:52 — forked from ezekg/checklist.md
Deployment Checklist

Deployment Checklist

Pre-Development

  • Hosting is set up with full control panel access and we have log in credentials
  • All email addresses are known for each form and all emails has been confirmed active
  • Person responsible for DNS switch knows client's current email management service and understands how to route the DNS

Post-Development

  • Person responsible for deployment has obtained SSH access to server
  • All required system packages have been installed on the server e.g. recent versions of php (greater than v5.4, if at all possible), mysql, git, wp-cli, magerun (if Magento project), openssl (if https), rsync, etc.
@artmouse
artmouse / 1step-Install-Deployer-Magento2-BitbucketPipelines.md
Created April 16, 2023 22:51 — forked from rafaelstz/1step-Install-Deployer-Magento2-BitbucketPipelines.md
Automated deploy using Magento 2 + Bitbucket Pipelines + Deployer

Use both files in your root folder and run:

curl -LO https://deployer.org/deployer.phar && sudo mv deployer.phar /usr/local/bin/dep && sudo chmod +x /usr/local/bin/dep
composer require deployer/recipes --dev
composer require rafaelstz/deployer-magento2 dev-master --dev
@artmouse
artmouse / git-deployment.md
Created April 16, 2023 21:35 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@artmouse
artmouse / nginx-wordpress.conf
Created February 15, 2023 22:41 — forked from nfsarmento/nginx-wordpress.conf
Harden wordpress security nginx
############ WordPress ####################
# Disable logging for favicon and robots.txt
location = /favicon.ico {
try_files /favicon.ico @empty;
access_log off;
log_not_found off;
expires max;
}