PHP session issue with Remi php-fpm

Using redis for php session brings a lot of advantages, such as faster responsiveness to your website, however the down side could be not very stable and you may lose all redis cache on server reboot. As long as we have a HA setup of redis server we can prevent such thing from happening.
Continue reading “PHP session issue with Remi php-fpm”

SOCKS5 as a VPN under Linux

Being able to proxy via SOCKS5 on browser sometimes wasn’t enough, one needs a system-wide proxy. The best and simplest solution is of course VPN, but VPN is not as fast compare to SOCKS proxy like ShadowSocks under Linux. What can we do? In this article, I am going to briefly introduce System-wide SOCKS5 proxy for all applications.
Continue reading “SOCKS5 as a VPN under Linux”

Weechat – FiSH key exceed 56 bytes (448 bits)

Recently I came across a problem. My friend could not decrypt the channel message in IRC as the channel has a blowfish key exceeds 56 bytes of size. I don’t know about the mIRC implementation (fish10) but in weechat under Linux, I found a solution.
Continue reading “Weechat – FiSH key exceed 56 bytes (448 bits)”

Using pingjs

Pingjs is a JavaScript library. It cleverly use the JavaScript’s native Image object to find the responsive time. Its example use has been provided by the author. The first “ping” to your target server is always incorrect. It counts the DNS resolve time in, hence I implemented this API to an endless loop of ping, to provide an accurate result back to the user.
Continue reading “Using pingjs”

Make a secret copy of sent email in Postfix

I have a business need. I need to send automatically generated email from a specific business address to my customers. Postfix does not help you to save it to “Sent” mailbox. Although I have mail logs telling me that emails have been sent to the correct email addresses but I really don’t know what is being sent.

Because I setup my own mail server, this is going to be really easy. There is no need to change my business code to BCC a secret address, which is not very nice.

Continue reading “Make a secret copy of sent email in Postfix”