Decoding \x{ZZZZ} utf8 strings inside perl

Published on Author gryzli

We have some cPanel accounts with Cyrillic language set to default, which makes cPanel to return escaped utf8 messages while you operating with the API.  One of the example messages I was getting , looked like this : \x{437}\x{430}\x{43f}\x{438}\x{441} \x{437}\x{430} \x{434}\x{43e}\x{43c}\x{435}\x{439}\x{43d} \x{201c} some-user-domain.com \x{201d} \x{432}\x{435}\x{447}\x{435} \x{441}\x{44a}\x{449}\x{435} \x{441}\x{442}\x{432}\x{443}\x{432}\x{430}. which is not very eye-friendly.   Using simple… Continue reading Decoding \x{ZZZZ} utf8 strings inside perl

Kibana Installation Under Centos / RHEL

Published on Author gryzli

Kibana is part of the famous ELK stack (ElasticSearch , Logstash , Kibana) and is best used for Vizualization and Interaction with your ES cluster.   When installing Kibana, it is good to make sure that your Kibana version is coresponding to your ES version. For example if you have installed ES 6.X , it… Continue reading Kibana Installation Under Centos / RHEL

Elasticsearch Installation How-To (Centos 7)

Published on Author gryzli

Elasticsearch install is pretty straight forward (also making cluster of elastic nodes).The following howto is about installing elasticsearch 6.x, which is the current latest version. It is good to know some basic concepts of ElasticSearch before using it.  I’m not going to talk about the hardware requirements, because they strongly depend on the setup and… Continue reading Elasticsearch Installation How-To (Centos 7)

Ansible Cheatsheet

Published on Author gryzli

The idea of this post is to make something like a cheatsheet, which I can refer in a future (after I forget almost everything I have learned so far). So I will try to add the most useful things I’ve found about Ansible. Short Ansible Tasks Examples   Task Example Comment

Install nginx with… Continue reading Ansible Cheatsheet

Nginx 99: Cannot assign requested address to upstream

Published on Author gryzli

If you are using Nginx for reverse or caching proxy and you are making some good amount of traffic, soon or later you are going to have issues with the TCP connections between Nginx and your backend.  You will start getting error messages looking like this:  [crit] 2323#0: *535353 connect() to 127.0.0.1:8080 failed (99: Cannot… Continue reading Nginx 99: Cannot assign requested address to upstream

Lua – Simple method to use Memcache

Published on Author gryzli

If you need fast and lightweight method of connecting with Memcache daemon, you can do it by just using the ‘socket’ module and open a TCP connection to the Memcache daemon.  After you have your connection done to Memcache, you could issue all kind of commands for getting/storing information.    Code

  The following… Continue reading Lua – Simple method to use Memcache

Ansible Debug Print All Variables

Published on Author gryzli

I have written a post about how to debug playbooks by dumping all variables in file (on remote server) by using Ansible template file. Here is some faster and more convenient way to print multiple variables or all with debug purpose inside a playbook. Here are some handy commands for quick dumping of a given… Continue reading Ansible Debug Print All Variables