Skip to content

Instantly share code, notes, and snippets.

Tribulant tribulant

Block or report user

Report or block tribulant

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:4c3901a591a526362194dbb563294d8e
[newsletters_posts language="en" showdate="N" eftype="excerpt" orderby="post_date" order="ASC" thumbnail_size="thumbnail" thumbnail_align="left" thumbnail_hspace="15" category="" post_type="product"]
View auto-iframe-height.html
<!-- Auto iFrame Height Instructions: https://www.lost-in-code.com/programming/javascript/javascript-auto-iframe-height/ -->
<iframe class="autoHeight" id="myframe" name="myframe" src="http://example.com/iframe.php" height="240" width="320" frameborder="0" scrolling="auto"></iframe>
View auto-iframe-height.html
// Auto iFrame Height instructions: https://www.lost-in-code.com/programming/javascript/javascript-auto-iframe-height/
<script type="text/javascript" src="autoheight.js"></script>
@tribulant
tribulant / ssl
Created Oct 9, 2018
SSL redirect specific folder
View ssl
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} folder
RewriteRule ^(.*)$ https://www.yourdomain.com/folder/$1 [R,L]
@tribulant
tribulant / ssl
Created Oct 9, 2018
SSL redirect specific domain
View ssl
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
@tribulant
tribulant / ssl
Created Oct 9, 2018
SSL redirect all traffic
View ssl
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
@tribulant
tribulant / wp-config.php
Created Sep 11, 2018
Change WordPress Temporary Directory
View wp-config.php
define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');
@tribulant
tribulant / mailinglists.php
Created Aug 27, 2018
Newsletters - Get Mailing Lists
View mailinglists.php
<?php
global $Mailinglist;
$mailinglists = $Mailinglist -> select(true);
//print_r($mailinglists);
?>
You can’t perform that action at this time.