How to update nodeJS to the latest version

on October 31st, 2016 by Hades

I’ve installed nodeJS on Ubuntu with following code
sudo apt-get install nodejs-legacy npm

nodejs --version

it shows v0.10.25

Read More »

Overclocking ATI cards in Linux

on October 30th, 2016 by Hades

This is a small guide for overclocking your ATI card under Linux. This guide targets Ubuntu, but it should be the same for any distro.


– Working fglrx driver
– Card supported by Overdrive (last time I checked only r6xx and up were supported, mobile and integrate chips excluded)

Read More »

Cisco 6807 VSS ISSU Upgrade

on October 28th, 2016 by Hades

The Request:

I have a client with multiple 6807 VSS pairs that required an IOS upgrade. All of the pairs have a single SUP2-T in each chassis and were in the 15 code train.

Although the ISSU process is very straight forward I wanted to put this quick process up as I had to search through multiple documents to gather all the pieces I needed to knock it out.

The Solution:

Since these switches were in the proper code train to utilize ISSU I decided that was the best route to go. It also helps that everything was already dual-homed. This process is for VSS pairs with only one SUP per chassis! If you have another configuration you can reference the Cisco document provided at the bottom of the post.

Read More »

How to flush OCSP cache on OSX

on October 14th, 2016 by Hades

GlobalSign’s efforts as a root certificate authority have gone TITSUP this afternoon – that’s a total inability to support usual protocols.

Read More »

How many tasks have you waiting on I/O

on October 9th, 2016 by Hades

Sometime you can see the high load average and low cpu usage.
Probably tasks waiting for I/O – that’s quite a bit of swap in use:
Read More »

No matching key exchange method found

on September 5th, 2016 by Hades

После обновления Linux соответственно и версии ssh, может появится следующая ошибка:

Unable to negotiate with port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

Read More »

Clear your Magento cache without using your admin pages

on July 28th, 2016 by Hades

While moving Magento installs or working on an existing clients install you might need to clean the cache, but you might not have access to the installs admin. With the code below you can easily clean the installs cache.

if($cache != null) {

Read More »

Experimental OpenCL driver for Ubuntu 16.04

on July 17th, 2016 by Hades

On Ubuntu 16.04, fglrx support was dropped and currently the opensource driver AMDGPU is still in an early stage and only supports very limited devices. I attempted to make the OpenCL part of fglrx working and made a modified fglrx package providing OpenCL support on Ubuntu 16.04. There is still no X support, so if you want to use X you have to use another GPU with X11 driver. The modified driver can co-exist with radeon, so you can just grab a low-end AMD card for display only. The followings are the changes I made:


  1. Applied patches to the driver source to make it compatible with kernel 4.4.
  2. Modified the driver so that it can co-exist with radeon. I added an new parameter “blocked_devs” to fglrx. You can specify the device IDs (separated by comma) that fglrx will skip and thus these devices can then be used by the radeon driver.
  3. The modified fglrx should be loaded before radeon, otherwise radeon will take all AMD GPU devices and conflict with fglrx. I made necessary changes to the postinst script and modprobe.d configurations to make this automatic for you.
  4. fixed an openCL crash bug by adding the /etc/ati folder to the package.

Read More »

Клавиша Delete в Mac OS X

on June 14th, 2016 by Hades

На маленькой клавиатуре Apple нет клавиши Delete, работающей как  в Windows, то есть удаляющей символы после курсора. Частично ее функцию выполняет клавиша Backspace, но она удаляет символы только перед курсором. Просто и удобно, но почему-то новоиспеченным маководам это не нравится…. и они задаются вопросом где кнопка delete на mac?  И не найдя ее  очень расстраиваются. Я не понимаю зачем удалять символы после курсора, ведь разумнее их удалять перед ним. :) Однако кнопка  Delete есть !!!

Read More »

How to use OpenCL on Ubuntu 16.04

on May 24th, 2016 by Hades

There have been many issues reported when installing Ubuntu 16.04 and the latest beta (which is also the future release).

I’ve installed it myself to see what’s going on.

Here we go:

  • Make sure to install Ubuntu 16.04 server as minimal as possible. No X11, no drivers, etc.

There’s ultimately just one package you need:

  • ocl-icd-libopencl1

Additionally, if you compile from GitHub source (otherwise you can skip this):

  • opencl-headers

Read More »

Manually Testing SSL/TLS Weaknesses

on May 18th, 2016 by Hades

The Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols aim to provide client and server systems with a means of establishing an encrypted communication channel. Though best known for putting the “S” in HTTPS,  their use is not limited to web-based systems; they are also commonly used as a wrapper for other unencrypted services such as FTP.

While SSL has historically been the dominant protocol for securing the Internet, a rash of attacks in recent years has prompted a migration to its successor, TLS. This alone is not enough to guarantee a secure connection, however. TLS has also been found to have weaknesses and careful configuration is needed to avoid exposing communications to compromise from a network-based attacker. SSL/TLS flaws are widespread; SSL Pulse estimates that over three-quarters of the SSL/TLS deployments currently in use by the top one million websites are inadequately configured.

Read More »

Подготовка к разработке

on May 4th, 2016 by Hades

Вступление Android – бесплатная операционная система, основанная на Linux с интерфейсом программирования Java. Android поддерживает 2D и 3D-графику, используя библиотеки OpenGL, а также хранение данных в базе данных SQLite. Каждое Android-приложение запускается в своем собственном процессе. Поэтому приложение изолировано от […]

Read More »

Анонимное сканирование портов : Nmap + Tor + ProxyChains

on April 21st, 2016 by Hades

В этой статье я объясню, как сохранить анонимность во время сканирования портов с помощью nmap (утилита для обнаружения сети и аудита безопасности).

Я покажу, как выполнить анонимный сканирование портов через сеть Tor, используя утилиту ProxyChains.

Я также покажу, как обойти ситуацию, когда терпит неудачу сканирования, так как Tor конечные точки будут заблокированы.

Read More »

Increase file upload size limit in PHP-Nginx

on April 12th, 2016 by Hades

If Nginx aborts your connection when uploading large files, you will see something like below in Nginx’s error logs:

[error] 25556#0: *52 client intended to send too large body:

This means, you need to increase PHP file-upload size limit. Following steps given below will help you troubleshoot this!

Read More »

How to Find Your Mac’s Exact CPU Model

on April 12th, 2016 by Hades

When buying a new Mac, Apple gives you just enough information about the system’s hardware to make a good comparative choice between the different models, but the company keeps the exact hardware details hidden in order to avoid customer confusion. For example, when shopping for a new MacBook Air, Apple tells you that the base CPU is a “2.5GHz quad-core Intel Core i7 processor (Turbo Boost up to 3.7GHz) with 6MB shared L3 cache”, but doesn’t reveal the specific model.

How to Find Your Mac’s Exact CPU Model

Read More »