Skip to content

Instantly share code, notes, and snippets.

@artmouse
artmouse / README.md
Created December 20, 2022 23:16 — forked from cerebrate/README.md
Recompile your WSL2 kernel - support for snaps, apparmor, lxc, etc.

WARNING

THIS GIST IS EXTREMELY OBSOLETE. DO NOT FOLLOW THESE INSTRUCTIONS. SERIOUSLY.

IF YOU IGNORE THE ABOVE WARNING, YOU AGREE IN ADVANCE THAT YOU DIDN'T GET THESE INSTRUCTIONS FROM ME, THAT I WARNED YOU, AND THAT I RESERVE THE RIGHT TO POINT AND LAUGH MOCKINGLY IF AND WHEN SOMETHING BREAKS HORRIBLY.

I'll do a write-up of current custom-kernel procedures over on Random Bytes ( https://randombytes.substack.com/ ) one day soon.

NOTE

@artmouse
artmouse / magento-clear-log.sql
Created November 2, 2022 18:27 — forked from loopool/magento-clear-log.sql
Clearing magento log data
set foreign_key_checks = 0;
truncate dataflow_batch_export;
truncate dataflow_batch_import;
truncate log_customer;
truncate log_quote;
truncate log_summary;
truncate log_summary_type;
truncate log_url;
truncate log_url_info;
truncate log_visitor;
@artmouse
artmouse / Windows Defender Exclusions for Developer.ps1
Created May 13, 2022 21:22 — forked from nerzhulart/Windows Defender Exclusions for Developer.ps1
Adds Windows Defender exclusions for developers (Visual Studio, JetBrains Rider, IntellIJ Idea, Git, MsBuild, dotnet, mono etc.)
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null
$pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null
$pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null
$pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null
@artmouse
artmouse / LICENSE
Created May 13, 2022 17:47 — forked from noelbundick/LICENSE
Exclude WSL installations from Windows Defender realtime protection
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@artmouse
artmouse / shell_delete_unused_images.php
Created February 17, 2020 18:51 — forked from colinmollenhour/shell_delete_unused_images.php
Delete no more used Product Images on Magento
<?php
require_once 'abstract.php';
class Mage_Shell_CheckImages extends Mage_Shell_Abstract
{
const CATALOG_PRODUCT = '/catalog/product';
const CACHE = '/cache/';
public function run()
@artmouse
artmouse / deploy.sh
Created February 17, 2020 17:54 — forked from leek/deploy.sh
Magento 2 Deployment Script
#!/bin/bash
LOCKFILE=deploy.lock
if [ -e ${LOCKFILE} ] && kill -0 `cat ${LOCKFILE}`; then
echo "-- ERROR"
echo "-- Deployment is already running"
exit
fi
@artmouse
artmouse / README.md
Created February 17, 2020 17:50 — forked from leek/_Magento2_DeleteTestData.md
Magento 2 - Delete All Test Data

These set of scripts are for Magento 2. For Magento 1, see this Gist.

@artmouse
artmouse / README.md
Created February 17, 2020 17:50 — forked from leek/_Magento1_DeleteTestData.md
Magento 1 - Delete All Test Data

These set of scripts are for Magento 1. For Magento 2, see this Gist.

@artmouse
artmouse / homestead-xdebug.md
Created February 5, 2020 18:43 — forked from thejettdurham/homestead-xdebug.md
Debugging laravel/lumen + artisan from Homestead with PHPStorm over xdebug

This config works for me with the following setup, YMMV

  • OSX El Capitain
  • PHPStorm 2016.2.1
  • Lumen 5.2
  • Homestead as of Lumen 5.2
    • php 7.0.8-2
    • Xdebug 2.4.0

Homestead Configuration

@artmouse
artmouse / vbox-guest-additions.sh
Created January 27, 2020 11:53 — forked from fedecarg/vbox-guest-additions.sh
GuestAdditions versions on your host (version) and guest (version) do not match
#
# How to update VirtualBox Guest Additions with vagrant
#
$ vagrant up
# Check the guest additions version:
$ vagrant vbguest --status
# If there's a version mismatch, you should see this message:
# [default] GuestAdditions versions on your host (x.x.x) and guest (x.x.x) do not match.