Query:
http://...
| URL Parameter | Accepted Values | Description |
<?php | |
add_filter('wp_mail_smtp_custom_options', function( $phpmailer ) { | |
$phpmailer->SMTPOptions = array( | |
'ssl' => array( | |
'verify_peer' => false, | |
'verify_peer_name' => false, | |
'allow_self_signed' => true | |
) | |
); |
function Load-Packages | |
{ | |
param ([string] $directory = 'Packages') | |
$assemblies = Get-ChildItem $directory -Recurse -Filter '*.dll' | Select -Expand FullName | |
foreach ($assembly in $assemblies) { [System.Reflection.Assembly]::LoadFrom($assembly) } | |
} | |
Load-Packages | |
$url = 'http://*:443/' |
const listeners = (function listAllEventListeners() { | |
let elements = []; | |
const allElements = document.querySelectorAll('*'); | |
const types = []; | |
for (let ev in window) { | |
if (/^on/.test(ev)) types[types.length] = ev; | |
} | |
for (let i = 0; i < allElements.length; i++) { | |
const currentElement = allElements[i]; |
// Paste these lines into website's console (Win/Linux: Ctrl + Shift + I / Mac: Cmd + Alt + I) | |
if(!!window.React || | |
!!document.querySelector('[data-reactroot], [data-reactid]') || | |
Array.from(document.querySelectorAll('*')).some(e => e._reactRootContainer !== undefined || Object.keys(e).some(k => k.startsWith('__reactContainer'))) | |
) | |
console.log('React.js'); | |
if(!!document.querySelector('script[id=__NEXT_DATA__]')) | |
console.log('Next.js'); |
# Important note: this enables REMOTE DESKTOP! Use good passwords! | |
## function definitions | |
function Set-Reg($key, $name, $value, $type) { | |
If (-Not (Test-Path "$key")) { | |
New-Item -Path "$key" -ItemType RegistryKey -Force | Out-Null | |
} | |
if ($type -eq $null) { | |
Set-ItemProperty -path "$key" -Name "$name" -Value $value | |
} else { |
(function() { | |
'use strict'; | |
/** | |
* Core method, similar to jQuery (only simpler) | |
* | |
* @param {String|HTMLElement} s The CSS selector to search for or HTML element to wrap with functionality | |
* @param {HTMLElement} root OPTIONAL An HTML element to start the element query from | |
* @return {Array} The collection of elements, wrapped with functionality (see API methods) | |
*/ |
(Serial port or com port? - Serial ports are often refered as COM ports. It is the same to be short. You can read abut it in the Wiki article )
<?php | |
function getMonthRanges($start, $end) | |
{ | |
$timeStart = strtotime($start); | |
$timeEnd = strtotime($end); | |
$out = []; | |
$milestones[] = $timeStart; | |
$timeEndMonth = strtotime('first day of next month midnight', $timeStart); | |
while ($timeEndMonth < $timeEnd) { |
Use: for testing against email regex | |
ref: http://codefool.tumblr.com/post/15288874550/list-of-valid-and-invalid-email-addresses | |
List of Valid Email Addresses | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] |