Author Archives: admax

jQuery Playground: The base of AJAX

A very simple trick… HTML: <img id=”some-image” src=”http://domain.com/image.jpg” alt=”” width=”200″ height=”70″ /> Script: var someimage = jQuery(“img[id=’some-image’]”); jQuery.get( someimage.attr(“src”), function( ) { // Do something }); This (way of client requests) is the base of  AJAX/XMLHttpRequest, in this case is … Continue reading

Posted in Basic Technical | Tagged , , , | Comments Off on jQuery Playground: The base of AJAX

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]

Dump saved WIFI password from CMD

To dump some saved WIFI password on Windows just type: netsh wlan show profile name=[ssid] key=clear This will need a elevated command prompt and will also show other details that can be usefully on scripts, or similar… AC.

Posted in Basic Technical, Learned Today, Networking | Tagged , , , | Comments Off on Dump saved WIFI password from CMD

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

FON2100A OpenWRT Unbrick

A small step to step on how to revive a bricked FONERA 2100A (With Redboot installed) Files Needed: Easy Redboot flash utility: http://download.berlin.freifunk.net/fonera/ap51-flash-gui-1.0-42.exe Previous program dependency: http://www.winpcap.org/install/bin/WinPcap_4_1_3.exe OpenWRT Kamikaze 8.09.2 http://downloads.openwrt.org/kamikaze/8.09.2/atheros/openwrt-atheros-vmlinux.lzma http://downloads.openwrt.org/kamikaze/8.09.2/atheros/openwrt-atheros-root.squashfs Hardware needed: – PC Computer (Or VM) – … Continue reading

Posted in Linux, Networking | Tagged , , , , , | Comments Off on FON2100A OpenWRT Unbrick

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

OSx Advanced Search: Find + Grep

To find some text inside all types of files: find . -type f -exec grep -l “some text” {} + AC.

Posted in Basic Technical, Learned Today, Mac | Tagged , , , , , | Comments Off on OSx Advanced Search: Find + Grep

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”