This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Disable Textdomain Error | |
* Description: Prevents triggering errors for the '_load_textdomain_just_in_time' function. | |
* Author: Kowsar Hossain | |
* Version: 1.0 | |
* | |
* Note: This is a Must-Use (MU) plugin. Place this file in the 'wp-content/mu-plugins' directory. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
tmp=$(mktemp -d) | |
pushd "$tmp" || exit 1 | |
function cleanup { | |
popd || exit 1 | |
rm -rf "$tmp" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CLASS zcl_im_cts_request_check DEFINITION | |
PUBLIC | |
FINAL | |
CREATE PUBLIC. | |
PUBLIC SECTION. | |
INTERFACES if_ex_cts_request_check. | |
PROTECTED SECTION. | |
PRIVATE SECTION. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param( | |
[string]$source, | |
[string]$dest, | |
[string]$format = "yyyy/yyyy_MM/yyyy_MM_dd" | |
) | |
$shell = New-Object -ComObject Shell.Application | |
function Get-File-Date { | |
[CmdletBinding()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# Convert a VM to a Spot VM | |
Based on sample script at https://docs.microsoft.com/en-us/azure/virtual-machines/windows/change-availability-set | |
NOTE: Extensions will not be copied to new instance!! | |
#> | |
# Set variables to your specifics | |
$resourceGroup = "myRG" | |
$vmName = "myVM" | |
# Get the details of the VM to be moved to the Availability Set |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* SUMMARY OF SPECIFIC BEHAVIORS: | |
* | |
* input string (formatted as string template) returned string (formatted as string template) | |
* ------------------------------------------- ----------------------------------------- | |
* any string containing %00 return empty string | |
* unencoded null character null character returned unchanged | |
* A%0AB A\nB | |
* A%0DB A\rB | |
* A%B return empty string | |
* A+B A B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
iatest=$(expr index "$-" i) | |
####################################################### | |
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me | |
####################################################### | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The ultimate split path. | |
* Extracts dirname, filename, extension, and trailing URL params. | |
* Correct handles: | |
* empty dirname, | |
* empty extension, | |
* random input (extracts as filename), | |
* multiple extensions (only extracts the last one), | |
* dotfiles (however, will extract extension if there is one) | |
* @param {string} path |
NewerOlder