Sentry is a real time event logging and aggregation platform. It allows to aggregate all events of your project in one place. It may be handy to get all logging messages and to have a possibility to track what’s going on with your application. You could use Sentry with node.js, PHP, Go, Python, Java and some…
All posts in linux
Installing Python 2.7 on Centos 6.5
Centos 6.5 is shipped with Python version 2.6. And for some projects and/or applications you may need to use version 2.7. First thing which comes to mind is to compile it from sources. But obviously it’s not the best way. It would create more problem in future, besides it’s quite easy to get the whole system…
Python: running services with logging to Rsyslog on Fedora
So, here is a task. We need to run some Python script as service with logging to Rsyslog on Fedora. As you may know, Fedora starting from 15 uses systemd which is a replacement for SysVinit and Upstart. With use of it to setup Python service with logging is quite simple. Let’s assume we have…
vBulletin: attachments service optimization using vb-accelerator
By default vBulletin uses PHP to deal with attachment downloads. It means that to provide a file from forum attachments to a user PHP process reads it and then starts to output it. This would work ok if you don’t have to much users. But if you do attachments downloads from PHP could become one of…
Headless Selenium testing environment on Centos 6.5
Selenium is a set of tools which allows to test web applications automatically. Here’s a way to get it working on Centos 6. At the end we should be able to run headless Selenium tests with Firefox. Please note that as X11 disaplay server we will use Xvfb. At first let’s install required packages and…
How to enable LED blinking for a drive in LSI RAID
If you need to replace a failed HDD, it might be useful to enable LED blinking. Here’s how you can do this if you have LSI RAID. At fist let’s find HDD information. MegaCli64 -PDList -aALL | less What you need to find is Enclosure Device ID and Slot number. Once done, run: MegaCli64 -PdLocate…
elasticsearch: installation and configuration on Centos 6.2
The installation of elasticsearch (which is distributed RESTful, search engine built on top of Apache Lucene) on Centos, will be easier if it is in repositories. But it isn’t. And since the best way to install application on Centos is to use rpm packages we will need to build it. At the very beginning you…
vBulletin: attachments downloads optimization using vb-accelerator
By default vBulletin uses PHP to deal with attachment downloads. It means that to provide a file from forum attachments to a user PHP process reads it and then starts to output it. This would work OK if you don’t have too much users. But if you do, attachments downloads from PHP could become one of…
AWK: how to get text which is between two strings
If you need to get some text which is in file between two lines you could use awk for this. You may need it while analyzing access logs to fix some issue, for instance. Here’s how you could do it: awk ‘/2012:00:20:49/, /2012:00:35/’ access_log > output It’s a simple and convenient way.
Apache: getting remote IP when working behind nginx
Sometimes you may want to use Apache behind nginx. In this case nginx works as reverse proxy and handles user connections and static files. And Apache generates dynamic content (for instance, with use of PHP). In this case remote IP in your scripts would be 127.0.0.1 since Apache gets requests from the same server. It…