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
FOR /R %f IN (*.jpg) DO magick "%f" -resize 3000x3000^> -quality 85 "%f" |
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 | |
function randomPassword( $len = 10, $ucfirst = true, $spchar = true ){ | |
/* Programmed by Christian Haensel | |
* christian@chftp.com | |
* http://www.chftp.com | |
* | |
* Exclusively published on weberdev.com. | |
* If you like my scripts, please let me know or link to me. | |
* You may copy, redistribute, change and alter my scripts as | |
* long as this information remains intact. |
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 | |
$rss = new SimpleXMLElement('<rss version="2.0"/>'); | |
$channel = $rss->addChild('channel'); | |
$item = $channel->addChild('item'); | |
$item->addChild('title')->{0} = 'Convicts flood streets of Boston'; | |
$item->addChild('link')->{0} = 'http://www.example.com/2012/04/convicts-flood-streets-of-boston/'; | |
$item->addChild('description')->{0} = 'Summarize news story here.'; |
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
<!-- Source: http://uniondesign.ca/simple-accordion-without-jquery-ui/ --> | |
<!-- JS --> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($) { | |
$('#accordion').find('.accordion-toggle').click(function(){ | |
//Expand or collapse this panel | |
$(this).next().slideToggle('fast'); |
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 | |
function randomPassphrase( $numwords = 3, $minlength = 16, $ucfirst = true, $spchar = true ) | |
{ | |
if ( $numwords < 3 ) { | |
$numwords = 3; | |
} elseif ( $numwords > 6 ) { | |
$numwords = 6; | |
} | |
if ( $minlength < $numwords * 4.5 ) { | |
$minlength = $numwords * 5; |
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
RewriteEngine on | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
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 | |
/** | |
* Replaces double line-breaks with paragraph elements. | |
* | |
* A group of regex replaces used to identify text formatted with newlines and | |
* replace double line-breaks with HTML paragraph tags. The remaining | |
* line-breaks after conversion become <<br />> tags, unless $br is set to '0' | |
* or 'false'. | |
* | |
* @param string $pee The text which has to be formatted. |
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 | |
class Crypt { | |
private $key; | |
function __construct($key){ | |
$this->setKey($key); | |
} |
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
###################################################################### | |
# Runtime configuration file for Exim # | |
###################################################################### | |
# This is a default configuration file which will operate correctly in | |
# uncomplicated installations. Please see the manual for a complete list | |
# of all the runtime configuration options that can be included in a | |
# configuration file. There are many more than are mentioned here. The | |
# manual is in the file doc/spec.txt in the Exim distribution as a plain |
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 | |
// Disable specific WordPress shortcodes when editing with Beaver Builder | |
function shortcode_compatibility_bb_fix() { | |
if ( FLBuilderModel::is_builder_active() ) { | |
remove_shortcode( 'gravityform' ); | |
remove_shortcode( 'fl_builder_insert_layout' ); | |
} | |
} | |
add_action( 'wp', 'shortcode_compatibility_bb_fix' ); |
NewerOlder