Disable mouse zooming in Firefox

Why? The scroll wheel on my MX master 3 doesn’t really work well with MacOS. Zooming is triggered by mistake quite often. Windows: about:config mousewheel.with_control.action change the value to 1 Reference: https://support.mozilla.org/bm/questions/1253302 OSX about:config mousewheel.with_meta.action change the value to 1 In MacOS, meta key is the Command key. (Source) The Read more…

Enable MySQL/MariaDB SSL for PDO/Laravel

Server side setup Refer to this manual from MariaDB https://mariadb.com/kb/en/securing-connections-for-client-and-server/ require_secure_transport = ON could be added to the my.cnf file to enforece SSL for all connections (including those from localhost & unix socket) One way SSL Without CA verification PDO $pdo = new PDO(‘mysql:host=db.example.com;dbname=image’, ‘laravel’, ‘laravel’,array( PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false)); Laravel Read more…

Getting started with eBay API Tokens (Oauth) with PHP

Official Guide: http://developer.ebay.com/devzone/rest/ebay-rest/content/oauth-gen-user-token.html I’ll also cover some mistakes I made.  Signup at https://developer.ebay.com Create an App and get the App ID (Client ID) and Cert ID (Client Secret) Click ‘User Tokens‘ (either from sandbox or production, depend on you) Click “Get a Token from eBay via Your Application” then “Add eBay Redirect URL“ Read more…

Remove the Loop Icon for VOX

VOX is the best music players on OSX I’ve ever used. The Loop becomes one of it’s features to store unlimited music on it’s platform. It’s a good feature, and the only way for the developer to get some pay back for the wonderful applet. I just don’t need it, Read more…

Note on sshd_config Setup

What’s sshd_config? It’s “OpenSSH SSH daemon configuration file” Simply means the config file for OpenSSH Server. Located at /etc/ssh/sshd_config My reference http://www.freebsd.org/cgi/man.cgi?query=sshd_config ListenAddress and Port By default, OpenSSH will listen on port 22 for all address(0.0.0.0 and ::) There can be multiple Port defined, for example: Port 22 Port 622 Read more…

Bugs and Tips found recently

1: Teensy as a keyboard does not work properly in GRUB. Solution: break your long input into parts (<=3 chars) and add delays (50ms is enough) between them.   2: In Debian and Ubuntu, your may install some PHP PECL modules just by using sudo apt-get install php5-pecl-http php5-propro php5-raphf Read more…