Mansoor A

Mansoor A

Top Five VPNs for 2016

When it comes to anonymity on the web, there is no such thing as a simple an ultimate solution, and any who makes such a claim is simply lying. Nevertheless, VPN services are highly versatile and tools that can greatly increase your security and privacy when using the Internet. Here is a list of 5 VPNs that seems to do the job. Please note that I have not used them personally. 1. BufferedVPN The small Hungarian company keeps everything simple, but nevertheless focused – it keeps no usage logs
Mansoor A
Mansoor A
3 min read

OSX, iTerm2, ZSH and the tab title

TL;DR Add the following to your ~/.zshrc and use the command tt <tab name> to rename your tab DISABLE_AUTO_TITLE="true" tt () { echo -e "\033];[email protected]\007" } -------------------------------------------------------------------------------- iTerm2 is the best terminal emulator out there for OS X. No questions there. ( Or is there a better one I haven't tried yet? ) And ZSH is my favourite shell. Well, it's the favourite shell of a lot of people. If you're the kind of person who will have a ton
Mansoor A
Mansoor A
1 min read
HomePage

Setting up Arduino IDE

If you're here, you probably have a very good idea about what Arduino is and you just want to setup your local machine (Mac OS X, Ubuntu or any other Linux Distro, or Windows ). Let's jump right into it, rather than blabbing about other stuff you actually don't care about at this moment. Installing the IDE First of all, you have to download and install the software bundle. Ubuntu and other Debian based systems Open up a terminal and issue the following command to install the Arduino IDE and ot
Mansoor A
Mansoor A
2 min read

FFmpeg installation script for CentOS

Installing FFmpeg can be a PIA. It became a lot easier recently. But, still some people face issues when trying to get FFmpeg working on their system. Well, here is one script I made when I had to install FFmpeg on several servers a while back. It works. Thought I'd share it with you. #!/bin/bash # ffmpeg installation script for centos # __author__ : Mansoor (digitz.org) function banner { echo -en " +++++++++++++++++++++++++++++++++++++++++ + FFmpeg Installer for CentOS + +++++
Mansoor A
Mansoor A
4 min read

Best Markdown editor for Mac

I started using Markdown very recently - when I moved my blog from Wordpress to Jekyll. At first it seemed difficult, but once I got used to it, there was no going back. At first, I used Sublime Text to write Markdown. It was kind of OK, but there was something missing. I eventually used Atom and Visual Studio Code too. They both worked pretty good, as far as features are concerned. Then I saw this beautiful little app called MacDown. And I knew it at the first look itself that this is the one
Mansoor A
Mansoor A
1 min read

Perl CGI scripts and PATH env variable

If you are trying to invoke system commands from a Perl CGI script, chances are it won't work all the time. For example, if your CGI script has something like system('uptime'); And if the location of the binary "uptime" is not in the "PATH", it will not work. The solution is pretty simple, set the value of the environment variable whenever the script is being executed. In perl, all environment variables are stored in a special has %ENV You can easily see the value of the PATH variable by inc
Mansoor A
Mansoor A
1 min read

Better RDP client for Fedora and Ubuntu

The other day, I had to use RDP to connect to a customer's Windows Server 2012. I use a Linux Workstation, so normally, I use "rdesktop" to get things done. But, this time, when I did rdesktop 95.x.x.x I got the following error. [email protected] ~ # rdesktop 95.xx.xx.xx Autoselected keyboard map en-us Failed to connect, CredSSP required by server. I tried a quick google search and the results suggested me to uncheck "Allow connections only from computers running Remo
Mansoor A
Mansoor A
1 min read

Fix 'Roundcube - Connection to storage server failed' error

This is going to be a very short post. I faced this issue on a Plesk server. All of a sudden ( it was after a reboot ), Roundcube stopped working. No matter what you do, this is the error you get > Connection to storage server failed Not very helpful, I know. This is a generic error, there could be a 100 reason why it happens. But, if this happened all of a sudden, then it must be easy to fix. Make sure that dovecot is running /etc/init.d/dovecot status If it isn't, restart it /etc/init.d
Mansoor A
Mansoor A
1 min read

How To Fix Poor Font Rendering in Fedora

Backstory I've been using Linux Mint 17.3 for some time, and then Ubuntu 16.04 was released. I have this problem, you know, like, if there is any distro release, I have to install it and use it. Be it Linux Mint, Ubuntu, Fedora, or whatever. So I installed Ubuntu 16.04. It was nice, for a while, then came quite a lot of bugs ( It's an LTS release for God's sake ). So I ditched Ubuntu and decided to go back to Fedora 23 KDE. And I did. Fedora is awesome. I mean, so many people underestimate Fed
Mansoor A
Mansoor A
3 min read

Fix YUM getting stuck - Centos 6/7

Some times it happens. You were trying to install something and Yum gets stuck. No error messages, it's just stuck. After you do several Ctrl+C, you're back in the shell. But, yum is still not working as it should. There could be several reasons why it happens, and the fixes are pretty simple. > Applicable to : Centos 6/7, Fedora * Check if you have the DNS set properly in your server. You can try something like ping www.google.com If you are getting a response, your DNS is working
Mansoor A
Mansoor A
1 min read

SuperFast WordPress Part 2 : Setting up FastCGI microcaching + Load tests

This is the second part of a post series. Please read the first one, if you haven't: Part 1 : Setting up Nginx + PHP-FPM + WordPress [https://esc.sh/blog/superfast-wordpress-part-1-nginx-php-fpm/] Alright. So now we have our WordPress site up and running. But things aren't running as smooth as you'd wished. If you did a load test right now, you will probably get similar results as if you had Apache serving the pages. The reason is that each time a page is requested, the php-fpm process has to u
Mansoor A
Mansoor A
3 min read
HomePage

SuperFast WordPress Part 1 : Setting up Nginx + PHP-FPM + WordPress

Nginx is fast. How fast? It's crazy fast, if you configure it properly. In this post, I will help you guys to set up a WordPress site powered by Nginx that can server 1000s of users at the same time ( Oh, I'm not even close to exaggerating, You'll see! ) What if I tell you that you can serve 3000 users per second ( or 250,000,000 - 250 Million clients per day ) a WordPress site, without crashing the server, what would you say? Sure, you can, if you have a huge server powering your site. Hold th
Mansoor A
Mansoor A
4 min read