Skip to content

Instantly share code, notes, and snippets.

View kikebeltran's full-sized avatar
👋

Kike Beltrán kikebeltran

👋
View GitHub Profile
add_filter( 'jpeg_quality', function() {
return 100;
});
# List files older than 25 days (for example) in Linux
find /path/to/find/* -mtime +25 -print
# Remove files
find /path/to/find/* -mtime +25 -exec rm -f {} \;
@kikebeltran
kikebeltran / Encryption.js
Created September 18, 2019 06:13 — forked from ve3/Encryption.js
Encrypt and decrypt between programming languages (PHP & JavaScript).
/**
* Encryption class for encrypt/decrypt that works between programming languages.
*
* @author Vee Winch.
* @link https://stackoverflow.com/questions/41222162/encrypt-in-php-openssl-and-decrypt-in-javascript-cryptojs Reference.
* @link https://github.com/brix/crypto-js/releases crypto-js.js can be download from here.
*/
class Encryption {