Category Archives: Medium Technical

Clear opcache in PHP

If you are working on a shared environment and deleted PHP files keep around, check how to clear empty the cache… In this case we found the server used “opcache” so with the function opcache_reset() we can get rid of … Continue reading

Posted in Linux, Medium Technical | Tagged , , , , , | Comments Off on Clear opcache in PHP

Android APK Modification

An APK file is a ZIP file with the files inside with certain structure so it can serve as installer. So for a basic modification, you can just rename the file to “.ZIP” extract the files and do whatever you … Continue reading

Posted in Android, Medium Technical | Tagged , , , , , , , | Comments Off on Android APK Modification

jQuery lazy image loading…

Just a speed up trick, if you have lot of images or big images, to allow the browser to render and show the page before load the images you can do a “lazy” loading, that means that you load a … Continue reading

Posted in Medium Technical | Tagged , , | Comments Off on jQuery lazy image loading…

Speed UP WordPress [or any site]

If you use a shitty server/network or your wordpress theme/plugins/content combination is heavy you can speed up the loading on the side of the client and server side by using a plugin like “W3 Total Cache”; it could set easily … Continue reading

Posted in Medium Technical, Wordpress | Tagged , , , , , , , , | Comments Off on Speed UP WordPress [or any site]

Disable local IP leak on Firefox – WebRTC

Avoid sites fetching your internal IP by disabling WebRTC… The native way: – Go to about:config and set “media.peerconnection.ice.default_address_only” to true And the old way: – Use a plugin like “Disable WebRTC” https://addons.mozilla.org/en-us/firefox/addon/happy-bonobo-disable-webrtc/ What is WebRTC and what does it … Continue reading

Posted in Medium Technical, Security | Tagged , , , | Comments Off on Disable local IP leak on Firefox – WebRTC

WordPress Proxy

Running WordPress on a internal network or something like that and want to handle all the internal connections with a proxy? Just edit the “wp-config.php” and add this: define(‘WP_PROXY_HOST’, ‘90.90.90.90’); define(‘WP_PROXY_PORT’, ‘3128’); define(‘WP_PROXY_USERNAME’, ‘username’); define(‘WP_PROXY_PASSWORD’, ‘password’); define(‘WP_PROXY_BYPASS_HOSTS’, ‘localhost, www.someurl.com’); References: … Continue reading

Posted in Medium Technical, Wordpress | Tagged , , , | Comments Off on WordPress Proxy

WordPress – Get all posts where a meta key does not exist

Simple… $search_values[‘meta_query’] = array( ‘relation’ => ‘OR’, array( ‘key’ => ‘psychedelics’, //replace with the non existing field to query ‘compare’ => ‘NOT EXISTS’, ‘value’ => ” // Ignored, but needed to work… ), array( ‘key’ => ‘psychedelics’, //replace with the … Continue reading

Posted in Learned Today, Medium Technical, Wordpress | Tagged , , , , , | Comments Off on WordPress – Get all posts where a meta key does not exist

Generate and Test a iOS Push Certificate

Hello, A (working) quick way to generate a working P12 Certificate using OpenSSL for push notifications on your iOS apps: Transform the Certificate from CER to PEM openssl x509 -in aps_production.cer -inform DER -out distrib_final.pem -outform PEM} Transform the Key … Continue reading

Posted in iOS, Mac, Medium Technical | Tagged , , , , , , , , , , | Comments Off on Generate and Test a iOS Push Certificate

OpenSSL – Comodo “unable to get local issuer certificate”

Hello, If you use Comodo certificates over an (web) application that uses OpenSSL and you get the error “unable to get local issuer certificate” that mean that you have to merge the all the certificate chain on one file and … Continue reading

Posted in Linux, Medium Technical | Tagged , , , , | Comments Off on OpenSSL – Comodo “unable to get local issuer certificate”

Compile OpenSSL from source on old Ubuntu

Hello, If your version of Ubuntu is no longer supported you should update… But in the meantime you could fix the broken or insecure packages on this way… Note: Before continue check if you can get from a trusty source … Continue reading

Posted in Linux, Medium Technical, Security | Tagged , , , , , , , , , | Comments Off on Compile OpenSSL from source on old Ubuntu