Tips & Guides

Guides or tutorials (computer related)

httpd, nginx, Python, Tips & Guides, Web Server

Python code: List most popular URL from Apache/NGINX ‘access.log’ file

Found a great Python code snippet for listing the most popular URL from Apache / NGINX ‘access.log’ file. Very practical! import collections logfile = open(“access.log”, “r”) clean_log=[] for line in logfile: try: # copy the URLS to an empty list. # We get the part between GET and HTTP clean_log.append(line[line.index(“GET”)+4:line.index(“HTTP”)]) except: pass counter = collections.Counter(clean_log) […]

httpd, nginx, Open Source, Server, Tips & Guides, Ubuntu/Debian

How to install NGINX with PageSpeed module in Ubuntu LTS / Debian

UPDATE: You can now install NGINX with PageSpeed in Ubuntu LTS with deb package: https://blog.mypapit.net/2015/08/install-nginx-with-pagespeed-using-deb-for-ubuntu-lts-amd64.html INSTALLING NGINX USING UBUNTU APT-GET SOURCE PageSpeed modules are open source modules developed by Google Inc that can perform website optimization to ensure faster site delivery, automatically. PageSpeed module is not included in NGINX installation in Ubuntu or Debian. So […]

Personal Life, Tips & Guides

Check public IP address with checkip.mypapit.net

You can now check your public IP Address by visiting checkip.mypapit.net. The website will display your public IP Address (or your anonymous proxy IP Address). As usual, this service is provided without any warranty. Additionally, you can also check IP Address from bash command line using this curl/wget trick. wget -qO – checkip.mypapit.net curl -o […]

Tips & Guides, Wordpress

Connecting blog with IFTTT !

I’ve managed to connect this blog with IFTTT! However due to certain security restriction that I’ve enforced on this blog to curb spammers and unauthorized access (aka crackers), I’ve decided against connecting my blog directly through XMLRPC endpoint. So I’ve use RSS/ATOM feeds instead. IFTTT is a wonderful service which allows you to connect various […]

Computers, GNU/Linux, Server, Subversion, Subversion-Git-Mecurial-Version-Control, Tips & Guides, VCS

How to use SVN (Subversion) on Google Code hosting

Google has generously offered free hosting services for free open source developers to host their projects either by using Mercurial, Subversion or git. This blog post touches on the basic on to use SVN to maintain source code repository on Google Code Hosting. Assumptions This tutorial assume that you have : Created an open source […]

Computers, Desktop, GNU/Linux, Internet Stuff, Server, Tips & Guides, Ubuntu/Debian

Backup your Gmail account in Ubuntu Linux with gmvault

This is a follow-up of my previous post “What to do when your Google disabled your Gmail account?“. Here’s how to download all emails from your GMail account with Gmvault: Download and setting up gmvault 1. First you need to install python-pip [bash] sudo apt-get install python-pip [/bash] 2. Then using ‘pip’, install gmvault [bash] […]

Computers, GNU/Linux, Internet Stuff, Open Source, Other Operating System, Tips & Guides, Ubuntu/Debian

How to optimize MySQL tables automatically using cron

Busy websites which has a lot of insert/delete transactions may introduce fragmentation in MySQL tables. Fortunately, users and optimize mysql tables with ‘OPTIMIZE TABLE’ command, but how to execute it automatically? Here’s how: The mysql-client package in Ubuntu installation comes with a tool called mysqlcheck which is handy for optimizing table in mysql. This command […]

Computers, security, Server, Tips & Guides

How to secure server from SYN-flood attack using iptables

SYN-flood attack is commonly utilized as a mean to disrupt network communication and it is a form of (Distributed Denial-of-Service) DDOS attack. RFC4987 details common mitigation to deal with SYN-flood attack. However in this post, I’m going to share you the method that I use to reduce the risk of SYN-flood attack from my department […]

Internet Stuff, Personal Life, Tips & Guides, Wordpress

Rant: About Starting up an E-commerce Site….

A bit of advice when starting up an e-commerce (especially storefront) site, please use proper e-commerce software for the job. Do not ‘force’ a general-purpose (CMS) to be an e-commerce site via plugins (or *cough* *cough* ‘component’), it’s gonna be a pain-in-the-ass to secure ’em. So do yourself (and the sysadmin guys) a favor, use […]

Computers, Personal Life, Personal Project, Tips & Guides

Public Domain vs Open Source License, which to choose ?

*Note that I’m not a legal expert or an attorney, this is just based on my personal experience and internet search* There are people who asked me about why bother to release a piece of software or code under Open Source License instead of putting it in Public Domain. First of all it is a […]

Computers, security, Server, Tips & Guides

How to Secure SSH server from Brute-Force and DDOS with Fail2ban ( Ubuntu )

Fail2ban is a security tool used for preventing brute-force attack and Distributed Denial of Service (DDoS) attack to your GNU/Linux box. Fail2ban monitors failed login attempts and subsequently blocks the ip address from further logins. Although Fail2ban can also be used to secure other services in Ubuntu server, in this post, I will only focus […]

GNU/Linux, Open Source, Personal Project, Tips & Guides, Ubuntu/Debian

Scientist: How to attribute free software contributions in journal article, proceeding and monograph

Scientists, academicians and researchers are a group of users that benefits greatly from Free and Open Source Software (FOSS / FLOSS). Most them would use free software not only to help in preparing graph and documentation, but also as the main tool in their investigation. Although it is not explicitly required by the software license […]

Scroll to Top