Skip to content

Instantly share code, notes, and snippets.

View tfirdaus's full-sized avatar
👨‍💻

Thoriq Firdaus tfirdaus

👨‍💻
View GitHub Profile
@tfirdaus
tfirdaus / decrypt.php
Created April 21, 2021 13:42 — forked from ivankristianto/decrypt.php
Encrypt & Decrypt with PHP
<?php
/**
* Decrypts a value.
*
* If a user-based key is set, that key is used. Otherwise the default key is used.
*
* @since 1.0.0
*
* @param string $raw_value Value to decrypt.
* @param string $key Key to use for encryption.
@tfirdaus
tfirdaus / 1-setup.md
Created June 30, 2021 15:13 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Methods of Signing with GPG

Last updated March 28, 2021

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by krypt.co

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

@tfirdaus
tfirdaus / email-regex-rfc6531.md
Created July 23, 2023 03:39 — forked from baker-ling/email_regex_rfc6531.md
Email Regex (RFC 6531)
@tfirdaus
tfirdaus / disable-speculative-loading.php
Created August 18, 2025 01:55 — forked from knolaust/disable-speculative-loading.php
Disable WP Speculative Loading
<?php
/**
* Disable Speculative Loading in WordPress
*
* WordPress 6.5+ introduces speculative loading (like prerendering and prefetching)
* to improve perceived performance by preloading likely navigation targets.
* This filter disables the feature entirely, which can be helpful if:
* - You're troubleshooting performance issues
* - You use dynamic or cache-sensitive content
* - You want full control over browser loading behavior