Install MySQL 5.5.16 on Fedora 15/14, CentOS/Red Hat (RHEL) 5.6/6

MySQL is a relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases. This is guide, howto install or upgrade MySQL Community Server latest and greatest version 5.5.16 on Fedora 15, (14 13, 12, 11, 10, 9, 8), CentOS 5.6 and Red Hat (RHEL) 5.6/6.
Note: If you are upgrading MySQL (from earlier version), then make sure that you backup (dump and copy) your database and configs. And remember run mysql_upgrade command.
Read more

Extending a logical volume

To extend a logical volume you simply tell the lvextend command how much you want to increase the size. You can specify how much to grow the volume, or how large you want it to grow to:
Read more

Установка и настройка Apache, mod_wsgi, Django, MySQL в Debian / Ubuntu

Источник статьи: http://debianworld.ru/

Django (читается как Джанго) — это свободно распространяемый фреймворк с открытым исходным кодом для разработки веб приложений на языке PythonDjango обладает следующими архитектурными отличиями:

  • использование концепции Модель-Представление-Контроллер (Model-View-Controller, MVC). В терминологии Django это будет Модель-Шаблон-Вид (Model-Template-View, MTV)
  • использование концепции приложений. Весь код рекомендуется оформлять в виде приложений и делать его подключаемым и переносимым
  • диспетчер URL на основе регулярных выражений
  • ORM для работы с БД (с поддержкой транзакций)
  • встроенный веб-сервер для разработки
  • встроенная административная панель

Установка и настройка Django

Django можно установить двумя способами: из репозитариев или скачав исходники фреймворка с сайта. Как правило, в репозитариях находится не самая свежая версия. Поэтому, обычно используется второй способ, хотя это и не Debian-way.
Read more

The repository for Debian-based LAMP servers

The latest versions of NGINX server

Instructions
Using Dotdeb is very simple:

For the main Dotdeb repository, depending on your distribution (lenny/oldstable or squeeze/stable), add these two lines to your /etc/apt/sources.list file (choosing a mirror near you) :
Read more

JSON character escaping function in classic ASP

If you are into advanced AJAX techniques you probably will stumble across JSON (www.json.org) which makes developing (and therefore the life) a lot easier when working with AJAX. If you already stumbled across and you use JSON within classic ASP you might find this article useful. It deals with escaping characters for JSON acording to the RFC4627#2.5
Read more

Share session state between ASP and ASP.NET apps

Learn how — and how not — to share Session variables between your old and new apps.

As you migrate your Web apps from classic ASP to ASP.NET, you may not have the luxury of completely rewriting the entire application before going to production. Instead, you may need to migrate portions of the application from ASP to ASP.NET, while leaving others as-is. If you need to make this type of migration, you will inevitably encounter the issue of how to integrate session state from your ASP application into your ASP.NET app.

Unfortunately, the session management services for each technology are completely separate, and there is no standard mechanism for sharing information between an ASP and an ASP.NET session. This article, however, shows a secure and simple method of sharing Session variables between ASP and ASP.NET pages. Along the way, you’ll also learn about several alternative methods that are not secure.
Read more

Go to ok prompt from ILOM of Sun T5120

Follow below procedure to get to «ok» prompt from ILOM.

1. ssh to ILOM hostname

2. From the ILOM prompt , type the below.

--> set /HOST send_break_action=break
--> start /SP/console

to get to the ok prompt.

Manual system reset from the ILOM prompt.

--> set /HOST/bootmode script="setenv auto-boot? false"
--> reset /SYS

How to create a self-signed SSL Certificate

Overview

The following is an extremely simplified view of how SSL is implemented and what part the certificate plays in the entire process.

Normal web traffic is sent unencrypted over the Internet. That is, anyone with access to the right tools can snoop all of that traffic. Obviously, this can lead to problems, especially where security and privacy is necessary, such as in credit card data and bank transactions. The Secure Socket Layer is used to encrypt the data stream between the web server and the web client (the browser).

SSL makes use of what is known as asymmetric cryptography, commonly referred to as public key cryptography (PKI). With public key cryptography, two keys are created, one public, one private. Anything encrypted with either key can only be decrypted with its corresponding key. Thus if a message or data stream were encrypted with the server’s private key, it can be decrypted only using its corresponding public key, ensuring that the data only could have come from the server.
Read more

Создание .deb пакетов из исходников

Для того что бы создать пакет .deb из исходников нужно проделать следующее:

1) Для начала требуется установить утилиту checkinstal:

sudo apt-get install checkinstall

2) Перейдите в папку с исходниками и выполните следующие команды:

./configure
make
sudo checkinstall

3) Ответить на вопросы.

Далее в папке с исходниками появится пакет с расширением .deb, который, в свою очередь, и будет установлен автоматом.

Более подробнее о данной утилите:

man checkinstall

Команды ANTI-DDOS

Команды ANTI-DDOS:

Сколько апачей:
Код:

    ps aux | grep httpd  |wc -l 

Cколько коннектов на 80 порт:
Код:

    netstat -na | grep ":80\ " | wc -l

Read more