Skip to content

Instantly share code, notes, and snippets.

View jonasrafael's full-sized avatar
🏠
Working from home

Jonas Rafael jonasrafael

🏠
Working from home
View GitHub Profile
@jonasrafael
jonasrafael / cf_cache_rules_implementation_guide_spcc.md
Created October 7, 2023 18:56 — forked from isaumya/cf_cache_rules_implementation_guide_spcc.md
Super Page Cache for Cloudflare — Guide for using Remove Cache Buster Query Parameter feature (when using Cache Everything page rule)

Implementation Guide for using "Remove Cache Buster Query Parameter" feature

The Super Page Cache for Cloudflare plugin has recently added the feature for using the Cache Everything pagerule withing the ?swcfpc=1 cache buster query paramater. This opens up so many new doors where users previously had to use the Cloudflare Workers to remove the cache buster.

With this new option now users are able to take advantage of Cloudflare Cache Everything page rule and take it to the next level by using the new Rulesets released by Cloudflare. Basically this is achived by taking advantage of the all new Cache Rules feature implemented by Cloudflare.


Setp 1 — Setting up the Cache Rules inside your Cloudflare Dashboard

The first thing that you need to do is, log-in to your Cloudflare Dahsbord and go to the domain/zone doe which you are setting up the [Super Page Cache for Cloudflare](https://wordpress.org/plug

@jonasrafael
jonasrafael / index.html
Created December 23, 2020 01:09
Splash Screen
<div class="container">
<div class="scroller">
<div class="inner">
<span>I'm Adam Blum.</span>
<span>I play a lot of instruments.</span>
<span>I record them in my home studio.</span>
<span>But my real goal is to <a class="blue">make</a> <a class="blueb">music</a>.</span>
</div>
</div>
</div>
@jonasrafael
jonasrafael / index.html
Created December 23, 2020 01:05
Splash Screen
<div class="container">
<div class="scroller">
<div class="inner">
<span>I'm Adam Blum.</span>
<span>I play a lot of instruments.</span>
<span>I record them in my home studio.</span>
<span>But my real goal is to <a class="blue">make</a> <a class="blueb">music</a>.</span>
</div>
</div>
</div>
@jonasrafael
jonasrafael / generateSplash.js
Created December 2, 2020 22:55 — forked from dawsontoth/generateSplash.js
Start with a 1000x1000 PSD with an icon in the middle. In Photoshop select File > Scripts > Browse... generateSplash.js. Saves out to ../Resources/iphone and android.
/*
Define our various sizes.
*/
var AndroidSizes = {
'android/images/res-ldpi/splash.9.png': 240,
'android/images/res-mdpi/splash.9.png': 360,
'android/images/res-hdpi/splash.9.png': 480,
'android/images/res-xhdpi/splash.9.png': 720,
'android/images/res-xxhdpi/splash.9.png': 960,
'android/images/res-xxxhdpi/splash.9.png': 1440
@jonasrafael
jonasrafael / remove_wc_password_meter.php
Created October 5, 2016 22:47 — forked from brunoalvarenga/remove_wc_password_meter.php
Remove WordPress default password strength meter
<?php
function remove_wc_password_meter() {
wp_dequeue_script( 'wc-password-strength-meter' );
}
add_action( 'wp_print_scripts', 'remove_wc_password_meter', 100 );