Skip to content

Instantly share code, notes, and snippets.

@willemnviljoen
willemnviljoen / intelliLangSqlInjectionWithoutDoctrineDql.xml
Created August 17, 2017 07:20
SQL language injection for PHPStorm which specifically ignores the Doctrine DQL language
<LanguageInjectionConfiguration>
<injection language="SQL" injector-id="php">
<display-name>&quot;SQL select/delete/insert/update/create&quot; Excluding Doctrine DQL</display-name>
<place><![CDATA[and(not(phpLiteralMatchesBrics(".*:.*")), phpLiteralMatchesBrics(" *(((SELECT|DELETE) .*FROM)|((INSERT|REPLACE) .*INTO)|(UPDATE .* SET)|((CREATE|DROP|ALTER) +((TEMPORARY )?TABLE|(UNIQUE )?INDEX))) .*"))]]></place>
</injection>
</LanguageInjectionConfiguration>
@biggyspender
biggyspender / MobyLinux.ps1
Last active September 28, 2020 23:36
Set DockerNAT switch to be a private network
# See comment lines prefixed with ADDED
# It might be necessary to delete the existing DockerNAT switch in hyper-v manager
<#
.SYNOPSIS
Manages a MobyLinux VM to run Linux Docker on Hyper-V
.DESCRIPTION
Creates/Destroys/Starts/Stops A MobyLinux VM to run Docker on Hyper-V
.PARAMETER VmName