Centos/RHEL/Fedora Build RPM Package From Scratch

Published on Author gryzliLeave a comment
Build custom RPM on centos/rhel/fedora

Why to create your own RPM Package ? In the following post, I will explain how one could easily build RPM package from a custom files. Let say you have added some custom scripts or files and you want to create RPM of them, here is how to do it.   How to build your own… Continue reading Centos/RHEL/Fedora Build RPM Package From Scratch

Systemd – systemctl list-unit-files timeouts

Published on Author gryzliLeave a comment

The problem Recently I’ve started to occasionally see systemctl to timeout, while executing “list-unit-files”. The problem itself looks very annoying and the first thought I had was: “systemd is bugged out, the server must be restarted” In my current case, the problem is observed on a Centos 7 box. If you “restart” the server you… Continue reading Systemd – systemctl list-unit-files timeouts

Centos 6 – Curl , SSL and Illegal Instruction error

Published on Author gryzli8 Comments

The “Illeagal Instruction” problem If you recently started to see errors like “illegal instruction” while trying to execute different web accessing scripts/binaries (like curl httpS://example.com), then most probably your Centos 6  NSS package was just updated.   The impact of this bug is enormous, because every single HTTP library which uses nss,openssl for maintaining HTTPS… Continue reading Centos 6 – Curl , SSL and Illegal Instruction error

Centos 6 – Recompile Apache Suexec

Published on Author gryzli1 Comment

By default Centos 6 has Apache (2.2.x) which comes with suexec preinstalled. The suexec module itself could be found here: /etc/httpd/modules/mod_suexec.so There is also a suexec wrapper binary, which is by default installed here: /usr/sbin/suexec   0. What is the problem with default suexec ? Imagine you want to activate Suexec for some of your… Continue reading Centos 6 – Recompile Apache Suexec

(Fedora) Lenovo Thinkpad T440 T450 T460 – Fix Trackpoint Scrolling And Left Button

Published on Author gryzliLeave a comment

The Problem I was using Fedora 23 happily with my old Thinkpad T520 and all of my trackpoint “stuff” was working just fine. After buying a new T460, suddenly I faced some trackpoint-related problems: First: The middle trackpoint button stopped scrolling anything Second: The left trackpoint button stopped working for marking text (only double-clicks were… Continue reading (Fedora) Lenovo Thinkpad T440 T450 T460 – Fix Trackpoint Scrolling And Left Button

Cpanel – Disable eximstats and truncate database from commandline

Published on Author gryzliLeave a comment

Few words about Eximstats Eximstats is a cPanel service, which is used to gather all kind of statistics for your incoming/outgoing email correspondence. The initial idea of such service is very nice, but after some time there arise some problems: The eximstats database tends to grow enormously ( especially if you have high-volume mail traffic)… Continue reading Cpanel – Disable eximstats and truncate database from commandline

Nginx – Hardening SSL security by protecting from well-known attack vectors

Published on Author gryzliLeave a comment

Recently bunch of SSL attacks pop out, some of which get lot of public attention: Heartbleed Beast attack Crime attack Freak attack Poodle …..and so on ….   Disabling SSLv3 and SSLv2 and Excluding Weak Cipher-Suites   If you want to protect your Nginx from the biggest part of these attacks, you can add the… Continue reading Nginx – Hardening SSL security by protecting from well-known attack vectors

MySQL – Creating stored procedures

Published on Author gryzliLeave a comment

Stored Procedures in MySQL are the typical primer for great ideas and bad implementation. Even that I have stored procedures, because of their performance penalties, recently I had to write one. The procedure itself was very simple, but there were some catchy stages I would like to describe in case I need to write such… Continue reading MySQL – Creating stored procedures

Lua – The beginning in lua programming

Published on Author gryzliLeave a comment

Lua is fast, light-weight and powerfull scripting language. If we trust the creators website, Lua must be the fastest interpreted programming language, which is a big reason to love it.   Lua Programming – The basis The is no “line ending delimiters” in lua ,but if you like, you can use “;” as delimiter. The line… Continue reading Lua – The beginning in lua programming