Skip to content

Instantly share code, notes, and snippets.

View jasonruyle's full-sized avatar

Jason Ruyle jasonruyle

View GitHub Profile
@jasonruyle
jasonruyle / card.php
Created April 9, 2024 17:00 — forked from Niq1982/card.php
Load more to WordPress blog archive using AlpineJS and Axios
<div class="card">
<?php if ($args['link']) : ?>
<a href="<?php echo esc_url($args['link']); ?>" class="global-link">
</a>
<?php endif; ?>
<div class="card-image">
<?php wp_get_attachment_image($args['image']); ?>
</div>
@jasonruyle
jasonruyle / OverEncrypt.md
Created February 15, 2018 19:10 — forked from mapmeld/OverEncrypt.md
OverEncrypt - paranoid HTTPS

OverEncrypt

This is a guide that I wrote to improve the default security of my website https://fortran.io , which has a certificate from LetsEncrypt. I'm choosing to improve HTTPS security and transparency without consideration for legacy browser support.

WARNING: if you mess up settings, lose your certificates, or decide to no longer maintain HTTPS certs, these steps can and will make your domain inaccessible.

I would recommend these steps only if you have a specific need for information security, privacy, and trust with your users, and/or maintain a separate secure.example.com domain which won't mess up your main site. If you've been thinking about hosting a site on Tor, then this might be a good option, too.

The best resources that I've found for explaining these steps are https://https.cio.gov , https://certificate-transparency.org , and https://twitter.com/konklone

@jasonruyle
jasonruyle / apply-price-rules.php
Created January 17, 2017 18:36 — forked from Sleavely/apply-price-rules.php
Programmatically apply catalog price rules in Magento
<?php
ini_set('display_errors', '1');
error_reporting(E_ALL);
// Bootstrap Magento
require '../magento/app/Mage.php';
Mage::app('admin', 'store');
try{
$catalogPriceRule = Mage::getModel('catalogrule/rule');
config.json
reading-image.png
config.json
reading-image.png
@jasonruyle
jasonruyle / .bash_profile
Created August 15, 2012 19:02
Install composer as system wide tool on OSX
alias composer="php /usr/local/bin/composer.phar"