Author Archives: lysender

Bash scripting – loops, string concatenation and passing arguments

I’ve just created some very basic bash script to automate my task, that is to run behat tests for several test directories. It involves passing argument from command line, doing loops on arrays and concatenating strings. See below for more … Continue reading

Posted in Linux | Tagged , , , | Leave a comment

Checking/unchecking checkbox doesn’t work in jQuery mobile

I’m using an old school jQuery code to modify elements that has true/false attributes such as checked or selected. This appears to be not working when I tried it on jQuery mobile checkbox. I used a different method instead and … Continue reading

Posted in JavaScript | Tagged , , , | Leave a comment

Slackware nginx update – 1.4.1 – security fix

A news in Ars Technica caught my attention today and it is about a widespread attack on web servers that includes Apache and nginx. My server is nginx therefore, I quickly updated my server to apply 1.4.1 version (my current … Continue reading

Posted in Linux | Tagged , , , | Leave a comment

Django – verbose console logging in development server

The moment you set DEBUG = False in development server for Django, you will be clueless about what’s going on for every error your application may encounter. If you just want to show verbose error messages on the console (when … Continue reading

Posted in Python | Tagged , , , | Leave a comment

Sublime Text shortcut – convert to lowercase/uppercase

Many times I’ve encountered a situation where I need to convert some codes/text into lowercase or uppercase while using Sublime Text. Then suddenly I thought it would be cool if there is a shortcut to convert selected text into lowercase … Continue reading

Posted in Personal Blog | Tagged , , , | Leave a comment

Setting up nginx + php-fpm on Slackware 14.0

For Slackware 14.0, it is now easy to setup an nginx webserver with PHP support via php-fpm. If you do a full install with Slackware 14.0, you can get PHP 5.4.x and php-fpm as this packages are shipped by stock … Continue reading

Posted in Linux, Slackware | Tagged , , , | Leave a comment

Surprise – SmartBro/MyBro Fair Usage Policy

MyBro (previously SmartBro canopy) has always been unlimited, no daily nor monthly limit ever known to all of us subscribers. We enjoyed the privilege for quit a year or so (a year in my case). Then suddenly, this April, my … Continue reading

Posted in Personal Blog | Tagged , , , | 2 Comments

Log real IP address with CloudFlare and nginx

When you have a website behind the CloudFlare DNS (using its CDN services), chances are your nginx access logs are logging CloudFlare IP addresses. This is due to the fact that your are serving content where CloudFlare acts as proxy. … Continue reading

Posted in Linux | Tagged , , , | Leave a comment

Get top IP addresses from access log

Using basic Linux commands, we can get top IP addresses that keeps hitting our web servers, whether they are valid visitors or attackers. The command is a combination of awk, sort and uniq. Given that the first column of the … Continue reading

Posted in Linux | Tagged , , , , , | 2 Comments

Gwiyomi Subtitles

Choco muffin anjo gak sige loko Pulsohan mo yun Indiano KidA Ryan Oh pagod na ako kung mag sa-sun salsal Harrizon pa duck ihe hipo nips sorry radyo Andun PAL gel mano gawa nito Nick oh, Nick oh Carinosa lang … Continue reading

Posted in Personal Blog | Leave a comment