Sitemap for Jekyll

Standard

Sitemap let’s search engine index your website and fetch url of your website to display it in the appropriate search result that they are going to be provide to their users for a specific search term, without a sitemap a website would not be indexed correctly and not all links to the website will be available in search results, this might become a reason why the website is viewed/visited in a very small number and has only some links, pages, posts are viewed by a visitor, Most Jekyll users prefer plugins to build their Sitemap and some plugins might take a good amount of system resource which might increase the time it takes to build your website source, Here is how to create a sitemap.xml file using simple Liquid for templating engine the default Jekyll templating language.

Create a sitemap.xml in your jekyll based website folder.

Now add this to your sitemap.xml that we have just created.

Now you can build your website.

jekyll build  

See you website in action.

jekyll serve  

Visit here.

Now we have a sitemap.xml for our website that can be submitted to the prefered search engine webmaster.

If you have any problem feel free to leave a comment below.

Weechat on Arch Linux

Standard

WeeChat (Wee Enhanced Environment for Chat) is a free and open-source Internet Relay Chat client, which is designed to be light and fast. Weechat is available on Arch Linux, FreeBSD, NetBSD, OpenBSD, Debian GNU/kFreeBSD), Mac OS X, Debian GNU/Hurd, HP-UX, Solaris, QNX, Haiku, and Microsoft Windows (via the Cygwin library and API).

Weechat uses a curses frontend, In WeeChat everything can be done with a keyboard, though it also supports mouse input. It is customizable and extensible with plugins and scripts.

Installing Weechat.

sudo pacman -S weechat  

Starting Weechat.

 weechat-curses

Connecting to an IRC server (example: freenode).

/connect freenode

You can also connect to your private/custom IRC Server.

/connect irc.example.com

Joining a specific channel (example: #revryl).

/join #revryl

Adding your private/custom IRC server (Change “) with name of your choice).

/server add  irc.example.net/6667

Saving the changes you have made.

/save

Done

NGINX on Ubuntu

Standard

NGINX is an open source reverse proxy server for HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer, HTTP cache, and the most important, web server. NGINX uses PHP-FPM to process PHP files.

Official NGINX ppa is available for Ubuntu that installs the latest stable version of NGINX available for the specific version Ubuntu on your system is running.

If you are running Ubuntu Server (Ubuntu desktop build already comes with this package).

“`
sudo apt-get install software-properties-common
“`

Adding NGINX ppa to your system

“`
sudo apt-add repository ppa:nginx/stable
“`

Updating your local package manager database.

“`
sudo apt-get update
“`

Installing NGINX

“`
sudo apt-get install nginx-full
“`

Installing PHP-FPM (NGINX will process php files).

“`
sudo apt-get install php5-fpm
“`

Add the following lines to your nginx config `/etc/nginx/sites-enabled/default`.

```
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;

    }

</div>If you prefer a much cleaner config add this instead.

<div class="highlighter-rouge">```
server {  
    server_name localhost;
    listen 80;
    root /usr/share/nginx/html;
    index index.php index.html;

    location / {
  try_files $uri $uri/ /index.html;
}

location ~ \.php$ {  
      try_files $uri =404;
      fastcgi_pass unix:/var/run/php5-fpm.sock;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      include fastcgi_params;

    }

}

Now we can start `PHP5-FPM`.

```
sudo /etc/init.d/php5-fpm start
```

Now you can create a `index.php` file in `/usr/share/nginx/html/` to test your web server configuration and add the lines below to it.

```
??>```

Now you have NGINX installed on your Ubuntu powered system. If you have any problem feel free to leave a comment below.