Install Let's Encrypt for Nginx on Ubuntu 16.04 with auto-renewals 1395/10/23

This tutorial will show you how to install Let's Encrypt for Nginx and how to setup a auto renewal for your certificates …

Run a script during Arch Linux boot process 1394/04/09

We will use a systemd service to run our script during boot process of Arch Linux …

How to install a program from Arch User Repository or AUR 1394/04/09

If you prefer to manually install packages from AUR instead of using tools like "yaourt" here you go …

How to configure iptables for openvpn 1393/05/19

If you have installed the openvpn server and iptable is blocking the service by default then use these configurations for openvpn to function properly. …

Automaticly block Brute-Force Attacks reported by Directadmin / CentOs 1393/05/19

To automatically block Brute-Force Attacks reported by Directadmin we will be using some scripts by Directadmin.
Be careful with this tutorial and use it at your own risk. The first commands will block your ssh access to server if you are not using the default ssh port 22. To allow your modified port number for ssh modify the iptables files accordingly. Also, this file is written for a CentOS/Fedora type system and has not been tested on Debian or FreeBSD …

How to install Yaz PHP on CentOs 6 1393/05/11

YAZ is a programmers’ toolkit supporting the development of Z39.50/SRW/SRU clients and servers. We first need to install YAZ dependencies using the yum package manager. Here I've explained the steps to get it installed on your box to get the PHP codes using the YAZ package run …

How to configure Squid basic authentication on CentOs 6.5 1393/05/10

In this post I will introduce the step by step configuration that allows for authenticated access to the Squid service using usernames and passwords. We are going to use "ncsa_auth" that allows Squid to read and authenticate user and password information from an NCSA httpd-style password file when using basic HTTP authentication. …

How to setup xdebug to work with manually compiled php 5.2.17 on ubuntu 1391/11/25

if you are like me and having both php 5.2 (compiled from source) and php 5.3 (installed by apt-get) on the same development machine (ubuntu 11.10) then one day you decide to install xdebug chances are you may find yourself struggling to follow instructions in xdebug documentation with no luck for hours. Here is what worked for me …

An alternative, safer & cleaner way to compare Types in javascript 1391/11/19

I was never happy with javascript type checking using typeof and comparing the result with a string; as a small spelling error in type name can lead into false results that do not even throw a good error. After a discussion with Afshin Mehrabani (Thank you man!) we thought we can put an end to this. So here is the initial result of that discussion …

How to get a WordPress post by slug 1391/11/10

I was developing a WordPress plugin using custom post types then I needed to retrieve a post by its slug. Here I'm trying to get a custom post type called "product". you can replace the post type according to your needs. generic types are "post" and "page". …

Back to home

I'm Arash Milani, hacker & happiness ninja.
@narmand is our teams's lab to experiment awesome things in it.

I write and talk about hacking, developing web apps, teamwork and designing for better user experience.

You can always contact me via me[at]arashmilani.com email address.